Hiding a GtkDialog and Cancel Callback



Hello,
I Build my application with glade, also a dialog.

The Dialog is created from xml at startup, but not shown.

If I need the Dialog I show it and if i don't need it I hide it.

In the Callback of the Cancel button of the Dialog I just hide the Dialog.

But If I press the Cancel button,
sometimes the Dialog will be Destroyed (I think) , then I am not able to show it again.

Strange is, sometimes I get Gtk-Errors when I use the Dialogs Widgets after that, sometime not.
(Perhaps The Widgets just stay in memory and the widget-functions think they are OK, don't know how gtk exactly works)

Has someone an Idea?

Regards
   Arne


p.s. all that happens under win32



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