[Glade-users] glade -- communication between windows in callbacks



is there a clean way to pass a component of another window to a callback?
for example:
main.c

window1 = create_window1();
window2 = create_window2();

how can i get window2 to be accessible to window1's callback without doing 
something lame like global variables?
i can get to all window2's widgets by using lookup_widget, assuming i have a 
ptr to window2.

since window2 is outside the scope of create_window1(), i cannot include 
this on the object line of the signal handler .

_________________________________________________________________
Take off on a romantic weekend or a family adventure to these great U.S. 
locations. http://special.msn.com/local/hotdestinations.armx





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