Re: signal handlers + exception + transient dialogs



On Thu, 2005-08-04 at 19:02 -0500, Rob Benton wrote:
> Hey guys I'm curious what you all use to handle exceptions and dialogs 
> inside a signal handler.  Everywhere else in my code I use 
> Gtk::MessageDialog's but I use them from the main window of my program 
> so I can set them as transient.  But I don't know 100% how to do this 
> inside a signal handler.  I guess I could use a call to libglademm to 
> get my main window but I hate to use that approach.
> 
> I guess what I'm wondering is what is the value in setting the transient 
> window of a Dialog.

Yes, this can be annoying and I find myself passing around a pointer to
the main window far too much. Maybe you can store a pointer to your main
window in a static variable that can be retrieved by a global function?

-- 
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]