Re: Problem with focus-in or focus-out event and GtkDialog
| From: | Anant Narayanan | Date: | Sun, 14 Jan 2007 22:58:10 +0000 |
| Subject: | Re: Problem with focus-in or focus-out event and GtkDialog | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7557@lists.php.net to get a copy of this message | ||
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