Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-properties-dialog.c
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws+gnome@xs4all.nl>2006-05-09 08:17:52 (GMT)
committer Wouter Bolsterlee <wbolster@src.gnome.org>2006-05-09 08:17:52 (GMT)
commit9341f430889ed826f8b326be923af9807d4133ee (patch)
treecdee6d8cdf2c6e7aebf4a17bd5eabe5dfea3f27e /shell/ev-properties-dialog.c
parentbd7654c9c516db6b32e9804a9544dc73faeca270 (diff)
Change the properties dialog response to GTK_RESPONSE_CANCEL instead of
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.
Diffstat (limited to 'shell/ev-properties-dialog.c')
-rw-r--r--shell/ev-properties-dialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ev-properties-dialog.c b/shell/ev-properties-dialog.c
index f4431a5..c1b355b 100644
--- a/shell/ev-properties-dialog.c
+++ b/shell/ev-properties-dialog.c
@@ -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);