Re: The "page" property of GtkNotebook

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

 



On Mon, 2008-04-21 at 17:35 +0800, 2notebook wrote:> Hi!EveryOne..> I look the page of GtkNotebook — A tabbed notebook container.I found> the "page" property.But when I use notebook->page,and compile has the> error: structure has no member named `page
[...]> it have no page member,it confuses me.> Can anyone to teach me why?

Properties aren't structure members, they are a higher level programminginterface exposed by the GObject base class.
See here:
http://library.gnome.org/devel/gobject/stable/gobject-properties.html
An example:
GtkNotebook *my_notebook;
my_notebook = gtk_notebook_new ();
....
g_object_set (G_OBJECT (my_notebook),              "page", 2,              NULL);
Hope that is of some help.
-- Peter Clifton
Electrical Engineering Division,Engineering Department,University of Cambridge,9, JJ Thomson Avenue,CambridgeCB3 0FA
Tel: +44 (0)7729 980173 - (No signal in the lab!)
_______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://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