Several widgets (e.g. ThunarPropertiesDialog) should use GtkBindingSet's instead of overriding key_press_event.
The easiest way would be to introduce an abstract widget class ThunarAbstractDialog, which handles the binding set and derive all dialog classes in Thunar from this class.
Committed with revision 19881. 2006-02-14 Benedikt Meurer <benny@xfce.org> * thunar/thunar-abstract-dialog.{c,h}, thunar/Makefile.am: Add new abstract class ThunarAbstractDialog, which overrides GtkDialog::close and provides additional keybindings for the "close" action. Bug #1380. * thunar/thunar-chooser-dialog.c, thunar/thunar-create-dialog.c, thunar/thunar-location-dialog.c, thunar/thunar-preferences-dialog.c, thunar/thunar-properties-dialog.c: Derive from ThunarAbstractDialog, so all dialogs/windows in Thunar can be closed using the same keyboard shortcuts and people can customize these shortcuts using the standard GtkBindingSet mechanism. Bug #1380.