Re: root windows



Dnia 26-05-2005, czw o godzinie 10:37 +0100, y g napisał:
in my application i have two root windows... let's say that in one
callback of a button from one of the two windows i want to refer to
the other window... is it possible to do that? some more info.... the
windows have been created with glade and the code generated with the
build of glade... so the pointers are hooked up using
GLADE_HOOKUP_OBJECT which to be honest i dont know what it is...

Note "root window" is incorrect name here, root window is used to
specifically refer to window of XID 0x0, sitting below all other windows
and occupying whole screen. What you have in applications is called
"toplevel windows". It's easy to do with libglade, just use
glade_xml_get_widget (), after you have named your windows appropriately
in glade of course.

Unless by "build of glade" you mean autogenerated C code, which is bad,
bad, bad thing to use. Use libglade, really. Although even with
autogenerated glade code it's easy to do, check inside one of the files
generated will be function glade_get_widget_by_name() or something
similar, which works like glade_xml_get_widget ().

Cheers,
Maciej

-- 
Maciej Katafiasz <ml mathrick org>




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