Re: Disabling automatic ESC key action for GtkDialog

2008-02-08 Thread Torsten Reuss
Thanks all, I realized that the problem is not only the ESC key, but also that the window can be closed via the window decoration, therefore I am attaching to delete-event to do the actions I previously did upon the cancel button being pressed. On Feb 8, 2008 6:31 PM, Dong Luo <[EMAIL PROTECTED]>

Re: Disabling automatic ESC key action for GtkDialog

2008-02-08 Thread Dong Luo
You may need add GTK_RESPONSE_ACCEPT or GTK_RESPONSE_REJECT parameter when create GtkDialog using gtk_dialog_new_with_buttons (). One of them is the response id from the action of press ESC key, thus you can write your handle to it accordingly. In my case, it is GTK_RESPONSE_ACCEPT. You can test it

Disabling automatic ESC key action for GtkDialog

2008-02-07 Thread Torsten Reuss
Hi, I am porting an application from gtk 1.2 to gtk 2.0 and found that there is a different behaviour for GtkDialog windows. In GTK-2.0, dialog windows automatically are closed and destroyed when the ESC key is pressed. This behaviour is incompatible with the application as most dialogs are only h