]> www.fi.muni.cz Git - evince.git/commitdiff
Change the properties dialog response to GTK_RESPONSE_CANCEL instead of
authorWouter Bolsterlee <uws+gnome@xs4all.nl>
Tue, 9 May 2006 08:17:52 +0000 (08:17 +0000)
committerWouter Bolsterlee <wbolster@src.gnome.org>
Tue, 9 May 2006 08:17:52 +0000 (08:17 +0000)
2006-05-09  Wouter Bolsterlee  <uws+gnome@xs4all.nl>

* shell/ev-properties-dialog.c: (ev_properties_dialog_init):

Change the properties dialog response to
GTK_RESPONSE_CANCEL instead of GTK_RESPONSE_CLOSE. This
will make the dialog go away when the user presses
enter. With gtk+ >= 2.9 this will happen anyway, but for
older gtk+ versions only GTK_RESPONSE_CANCEL is bound to
escape by default. Fixes bug #340539. See also bug
#101293 for the gtk+ part.

ChangeLog
shell/ev-properties-dialog.c

index 4d20c8e298ce60a8a0caa06005a0a6423e6e420f..eb53f525e63f2231d0a1db96146607645580d942 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2006-05-09  Wouter Bolsterlee  <uws+gnome@xs4all.nl>
+
+       * shell/ev-properties-dialog.c: (ev_properties_dialog_init):
+
+       Change the properties dialog response to
+       GTK_RESPONSE_CANCEL instead of GTK_RESPONSE_CLOSE. This
+       will make the dialog go away when the user presses
+       enter. With gtk+ >= 2.9 this will happen anyway, but for
+       older gtk+ versions only GTK_RESPONSE_CANCEL is bound to
+       escape by default. Fixes bug #340539. See also bug
+       #101293 for the gtk+ part.
+
 2006-05-08  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>
 
        * shell/ev-view.c (tip_from_action_named): Replace some strings
index f4431a54b283e3f2138869fecf37a2aca911c788..c1b355b7e469b4922ec0bb213537740dd16bcfcf 100644 (file)
@@ -65,9 +65,9 @@ ev_properties_dialog_init (EvPropertiesDialog *properties)
        gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (properties)->vbox), 12);
 
        gtk_dialog_add_button (GTK_DIALOG (properties), GTK_STOCK_CLOSE,
-                              GTK_RESPONSE_ACCEPT);
+                              GTK_RESPONSE_CANCEL);
        gtk_dialog_set_default_response (GTK_DIALOG (properties), 
-                                        GTK_RESPONSE_ACCEPT);
+                                        GTK_RESPONSE_CANCEL);
 
        properties->notebook = gtk_notebook_new ();
        gtk_container_set_border_width (GTK_CONTAINER (properties->notebook), 5);