Skip to content

Custom signals #107

@osa1

Description

@osa1

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions