Re: Differences between Gtk1 and Gtk2
- From: John Cupitt <john cupitt ng-london org uk>
- To: Marcos Leal <marcos polyflow com>
- Cc: gtk-list gnome org
- Subject: Re: Differences between Gtk1 and Gtk2
- Date: Thu, 26 Feb 2004 18:34:30 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]