Hi. I think that your callback is called when the selection changes. It's printf's output that is being buffered and not being written immediately to the console.
2008/11/26 Roy G. Biv <[EMAIL PROTECTED]>: > Hello everybody! > > I am just learning how to use GTK+ and have run into a problem. After > having followed Micah Carrick's Glade3 tutorial, I have learned that > using GtkBuilder seems to be the best way to do things. Therefore the > method that he used in his tutorial is the how I'm doing it too. On > to my problem... > > I have created a window that contains a single combobox widget named > combobox1. In this combobox I have listed a few different colors. > And in glade I set the a handler named "on_combobox1_changed" for the > "changed" entry under GtkComboBox. > > My C program contains this function: > > void on_combobox1_changed (GtkComboBox *widget, gpointer user_data); > > I had originally tried to get the background window to change to the > color that the user selects from the combo box. But, having no > success, I tried to debug it by adding a printf statement in the > on_combobox1_changed function. When I run the program and choose an > entry from the combo box, there is nothing displayed in the terminal > until I close the program, upon which my printf statement prints for > every time that I changed the combo box. So this is telling me that > my handler function is not being executed until another handler > function, namely, "on_window_destroy" is called. > > What can I do to be make this event handler actually handle the event > as it occurs? > > -Roy > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > -- Tadej Borovšak [EMAIL PROTECTED] [EMAIL PROTECTED] _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list