cqtgtk

Signals and slots in GTK


I have used Signals and slots in Qt and I want to implement same stuff in GTK+.

I have 2 threads in which I need to pass data. I have done it using signals and slots in Qt but now I have to implement this same stuff in GTK+ and C. How should I do it?


Solution

  • Here's a general tutorial for the signal/event mechanism without threads.

    When using threads, you'll have to make sure to

    There are probably hundreds of tutorials for threading in Gdk out there, so I'll leave it at that.