Differences between Gtk1 and Gtk2
I used to have some users parameters passed through 'gpointer user_data' For example, the event for pressed button I used to declare in GTK1 like : void on_button_pressed(GtkButton *button, gpointer user_data) I don't even know if this is the right thing to do. There's no 'gpointer user_data' on GTK2 anymore. But, is there any way to do the same thing ? Best Regards Marcos ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Differences between Gtk1 and Gtk2
Hi Marcos, Marcos Leal wrote: I used to have some users parameters passed through 'gpointer user_data' For example, the event for pressed button I used to declare in GTK1 like : void on_button_pressed(GtkButton *button, gpointer user_data) I don't even know if this is the right thing to do. There's no 'gpointer user_data' on GTK2 anymore. But, is there any way to do the same thing ? Yes, this is all the same. Just connect to "clicked". http://developer.gnome.org/doc/API/2.0/gtk/GtkButton.html#GtkButton-clicked John ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Differences between Gtk1 and Gtk2
John, There's no 'gpointer user_data' on GTK2 anymore. But, is there any way to do the same thing ? Yes, this is all the same. Just connect to "clicked". http://developer.gnome.org/doc/API/2.0/gtk/GtkButton.html#GtkButton-clicked Okay, but then my problem is with Glade2. On Glade 1 we still have the DATA field for the signal. On Glade 2 is just missing. Thank you Marcos ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list