Disabling automatic ESC key action for GtkDialog



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 hidden and not destroyed when the user presses
OK or Cancel.

What's the easiest way to prevent this behaviour? Do I have to capture
key-press-events in the Dialog window?

Thanks,
                   Torsten



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