Re: How to access a member of a box
- From: "John (J5) Palmieri" <johnp redhat com>
- To: cesarbs brturbo com
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: How to access a member of a box
- Date: Fri, 10 Dec 2004 16:35:14 -0500
On Fri, 2004-12-10 at 15:34 -0200, cesarbs brturbo com wrote:
Hello,
I have a program with the following lines
int main (int argc, char *argv[])
{
GtkWidget *box1;
...
box1 = color_selector_new ("Toolbar Color","toolbar.color",next_id());
...
}
(color_selector_new() is a function that returns a box containing a label and a button)
I would like to know how could I access the button inside box1. I've tried
G_LIST(GTK_BOX(box1)->children)->button
GList *child_list;
child_list = G_LIST(GTK_BOX(box1)->children)
You must then use the GList methods to traverse the list and find the
correct widget.
but it didn't work.
Thanks
_______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list gnome
org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
John (J5) Palmieri
Associate Software Engineer
Desktop Group
Red Hat, Inc.
Blog: http://martianrock.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]