Re: The "page" property of GtkNotebook
- From: Peter Clifton <pcjc2 cam ac uk>
- To: 2notebook <2notebook yahoo com tw>
- Cc: gtk-list gnome org
- Subject: Re: The "page" property of GtkNotebook
- Date: Mon, 21 Apr 2008 10:45:33 +0100
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!)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]