jeremyletang/rgtk

Custom signals

osa1 opened this issue · 5 comments

osa1 commented

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)

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

osa1 commented

@jeremyletang any news on this?

@osa1 : Is this issue solved ?

osa1 commented

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