Re: GTK dialog ESC key problem

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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]