Re: Differences between Gtk1 and Gtk2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux