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 programming interface 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, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) _______________________________________________ gtk-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-list
