Click to See Complete Forum and Search --> : Confused with GTK Tutorials and Glade Callback.c
asterik
10-04-2003, 12:44 AM
Ok, im really having a tough time with this. Because Glade makes the callbacks.c file n stuff with all the call backs. But... in the GTK+ Tutorials n stuff. It shows the code altogether. I don't know where to put like gtk_notebook_insert_page.... g_signal_swapped... etc etc. I am just really confused and really need some help :D
bwkaz
10-04-2003, 09:09 AM
The tutorials are likely not written in an event-driven "mode". Glade (and all GUI designers that I've ever seen) require you to think in an event-driven mode.
Glade will also write the vast majority of the code that the tutorials are showing you. For example, it'll set up the GUI and your callbacks completely -- you don't have to do a single thing with that. All you have to do is decide what's going to happen when the callbacks get called.
If you're having such a tough time with the tutorials and Glade, then why don't you just drop Glade out of the picture?
asterik
10-04-2003, 09:50 AM
well, i really do like glade, but like.... i can create the signals fine. But i just do'nt understand where like the g_signal_connect goes or ....... how gtk_notebook_insert_page goes and many other functions. But, i really don't feel i need to drop glade, i just need something to show me GTK+/Glade Programming effectively.
bwkaz
10-04-2003, 05:11 PM
You mean something like this? (note: found it right on the front page at http://glade.gnome.org...):
http://wingtk.sourceforge.net/ishan/glade.html