[Glade-users] closing dialog boxes



Hey Gunther,

There is documentation at www.gnome.org under developer or develope 
with gnome or whatever it's called now.  Also gtk documentation at www.
gtk.org.

You want to destroy or hide the dialog, not quit out of the main gtk 
loop (which is what gtk_main_quit()) does.  So to destroy use 
gtk_widget_destroy() and call it on the parent of the 'Cancel' button 
on the dialog box (ie the dialog box itself).  I'll leave it to you to 
find out how to hide and raise windows :).  Also, look at the example 
program that came with glade, it shows some simple ways of doing these 
things.

Cheers,

Rikke




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