Re: GTK dialog ESC key problem
- From: Tim Müller <zen18864 zen co uk>
- To: gtk-app-devel-list gnome org
- Subject: Re: GTK dialog ESC key problem
- Date: Mon, 27 Jun 2005 13:34:39 +0100
On Monday 27 June 2005 13:09, Colossus wrote:
I have a gtk-dialog built with glade with the two buttons Cancel and
Ok. When I push the ESC key on the keyboard the code behaves as I
clicked Ok with the mouse on the dialog and this is not correct.
How can I avoid this behaviour ?
It should actually act as if you clicked the Cancel button, ie. emit a dialog
response with GTK_RESPONSE_CANCEL and return that as value in
gtk_dialog_run() if you are using gtk_dialog_run(). In other words: you
probably need to fix your code to check the response values correctly.
] [Thread Prev