montse wrote:
>
> Hello everybody:
>
> i have a main window, when i click a button a new window comes up.
> I want only the main window to be global.
> But it isn't possible because i have to lookup_widget widgets of the 2�
> window.
> I thought that as the main window is the parent of the second i could
> write:
> lookup_widget(main_wd, "widget_of_the_2_window");
>
> but it doesn't work, is any way of doing that without declaring global
> the 2 window ?
You can use something like gtk_object_set_data (main_wd, "window2", window2);
to store a pointer to one of the windows inside the other one.
Damon
_______________________________________________
Glade-devel maillist - [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel