I'm trying to create a GUI using gtk3.0 in c, using gnome-builder 3.22.
I have created a gui using the built-in designer in gome-builder, which is just glade, and for each widget, I have assigned an ID. I have only defined the IDs, since the built-in version of glade inside gnome-builder is not complete, and doesn't have the tab for signals/handlers, only the standalone version of Glade has that.
I want to know, if there's a way to programmatically add signal handler/callback functions to the IDs specified in the xml, without having to do it in the xml itself, or use the standalone Glade software.
It's a fairly small gui, so a few extra lines of code doesn't bother me.
I also tried adding the handlers/callbacks in the xml, and use gtkbuilder's autoconnect function to connect these handlers/signals automatically, but that didn't work either.
The important files in the project has been uploaded to gist:
- main.c
- ba-compression-window.ui
- ba-compression-window.c
gist address: https://gist.github.com/Jebiel/08fdf3b8fbbd34e09bd48d05d79d9cbf
short url: http://gg.gg/eh4hn