Re: Problem with focus-in or focus-out event and GtkDialog

From: Date: Thu, 18 Jan 2007 23:13:07 +0000
Subject: Re: Problem with focus-in or focus-out event and GtkDialog
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7561@lists.php.net to get a copy of this message
Sorry I hope you undestand me... I continue to have the problem I think the cause of problem happens when signal handlers for "focus-in" or focus-out" is invoked infact meanwhile a GtkMessageDialog is opened the signal focus-out or focus-in is still active so I would to interrupt the signal, focus in or out, til the popup window l is opened But I don't know a correct way to make this Have you an idea ? Thanks Quoted from: http://www.nabble.com/Problem-with-focus-in-or-focus-out-event-and-GtkDialog-tf3011422.html#a8363987 Anant Narayanan wrote: > > Hi Angelo, > >> all run well if I add a comment to alert //alert >> so I thik the problem is in GtkDialog >> >> Anyone has an idea about it? > > The problem seems to be with $dialog->destroy(); Although the dialog is > destroyed the program segfaults as soon as the function returns. > > As a temporary solution; use $dialog->hide_all() instead of destroy(); > and store the dialog widget in a global variable or something to avoid > recreating it everytime. Just change the attributes and show it when you > need it again on the next event. > > Also, I suggest you use the GtkMessageDialog widget rather than just > GtkDialog; it seems to suit your purpose. > > -- > Anant > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- View this message in context: http://www.nabble.com/Problem-with-focus-in-or-focus-out-event-and-GtkDialog-tf3011422.html#a8441225 Sent from the Php - GTK - General mailing list archive at Nabble.com.

« previous php.gtk.general (#7561) next »