rgtk icon indicating copy to clipboard operation
rgtk copied to clipboard

Custom signals

Open osa1 opened this issue 11 years ago • 5 comments
trafficstars

I'm not experienced in native GTK library, so sorry if that question doesn't make sense.

I'm trying to run some GUI actions based on events emitted in different threads. None of the signals in rgtk::gtk::signals::Signal work for me because there are no guarantees that those signals won't be fired by some other GUI widget. There are no UserSignal or something like that for this purpose. I can't implement Signal trait for my stucts either, because of fn get_trampoline(&self) -> extern "C" fn(); item.

So I'm stuck here, can't use any of built-in signals, and can't implement my signals either. Any ideas on how to handle this? It could be nice if we had an example for this. (maybe with a timer thread that signals an event in ever 3 seconds etc. and a GUI that increments a counter or something like that)

osa1 avatar Oct 15 '14 11:10 osa1

I'm busy right now, but i will watch this tonight!

jeremyletang avatar Oct 15 '14 12:10 jeremyletang

@jeremyletang any news on this?

osa1 avatar Oct 16 '14 06:10 osa1

@osa1 : Is this issue solved ?

GuillaumeGomez avatar Oct 31 '14 16:10 GuillaumeGomez

Since no progress on this has been made so far I don' think this is solved.

osa1 avatar Nov 02 '14 07:11 osa1

Okay !

GuillaumeGomez avatar Nov 02 '14 09:11 GuillaumeGomez