How to access a member of a box



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

but it didn't work.

Thanks


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