Re: hide() show() make my program ends



On Tue, 2005-06-28 at 06:18 -0500, Bob Caryl wrote:
> Gtk::Window *dummy = NULL
> Gtk::MessageDialog dialog2(*dummy,"Test string");

Dereferencing a null pointer will crash.

> The program still seg faults... so I'm as big a dummy as my pointer.
> 
> There does not appear to be a way to do this trick (Gtk::MessageDialog 
> visible, parent window invisible) so far as I can see.

Why should that be possible? Surely transient means that it's not
possible. If you don't want it to be transient then don't make it
transient.

>   If I iconify() 
> the parent window before calling the dialog2.run() function, both 
> windows end up iconified...  so I'm stuck just like you.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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