gtk_dialog_run queries
- From: Sarfraaz Ahmed <asarfraaz novell com>
- To: gtk-app-devel-list gnome org
- Subject: gtk_dialog_run queries
- Date: Tue, 24 Feb 2004 11:10:36 +0530
Hi,
I was writing a GTK+ app and created the GUI using glade-2. I created a
GTK Dialog with OK and Cancel button and a few text entry boxes. I used
the glade_xml calls to update the GUI components and attached a few
signals.
I finally called gtk_dialog_run and was reading the response back in a
variable and was blindly calling gtk_dialog_destroy, without checking
the value of the response [ I just wanted to kill the dialog on any
response, and so decided not to check it, is this wrong ?? ]
But, with the above code, the dialog would never get destroyed.
I then added a set_response [ DESTROY ] call in the signal handler for
the ok button callback and was calling gtk_destroy only if this was the
response. Only then, i was able to get this dialog working. Any ideas,
on why this works only in this way ??
Also, what is the reasoning behind, disabling the default "delete_event"
behaviour for GtkDialog ??
--
Regards
-- Sarfraaz Ahmed
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]