Re: Gtk::AboutDialog issue.



On Mon, 2007-01-29 at 17:55 +0000, John Spray wrote:
> On Mon, 2007-01-29 at 17:45 +0000, Russel Winder wrote:

> >   about->show ( ) ;
> >   about->raise ( ) ;

> Typically you'd use about->run () instead -- this makes the dialog
> modal, shows it and returns when the user triggers a response (such as
> clicking the close button).  Then when you destroy the AboutDialog
> instance it'll disappear from the screen as well, or if you don't want
> to get rid of it you can just put a hide() call immediately after the
> run() 

John,

Ok, I replaced the above two lines with:

  about->run ( ) ;
  about->hide ( ) ;

and it seems to work a treat.  Thanks.

(Normally I am not a fan of modal dialogs but I guess in this
case... :-)

Thanks muchly.
-- 
Russel.
====================================================
Dr Russel Winder                +44 20 7585 2200
41 Buckmaster Road              +44 7770 465 077
London SW11 1EN, UK             russel russel org uk

Attachment: signature.asc
Description: This is a digitally signed message part



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