Re: Destroy Gtk default handler
| From: | Anant Narayanan | Date: | Sat, 07 Jan 2006 16:47:41 +0000 |
| Subject: | Re: Destroy Gtk default handler | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6508@lists.php.net to get a copy of this message | ||
Hi,
> When i click on $applyButton i want to check the input values and show
> an alert if the GtkEntry is empty, and later call the destroy handler to quit from
> the app. Thanks so much to all.
Your question is not very clear to me. If you just want to quit even
if the field is empty after displaying the dialog box, then connect
the "ok" button of the dialog to Gtk::main_quit.
Or if you want the GtkEntry compulsorily filled in and that the app
must not quit if the entry is empty, then your code is fine, just add:
else Closewin(); to your checkinput() function.
Regards,
--
Anant Narayanan
-------------------------
Find Freedom!
http://www.kix.in/