From: Nickolay V. Shmyrev Date: Sat, 17 Sep 2005 08:51:26 +0000 (+0000) Subject: Make close button in toolbar editor default. X-Git-Tag: EVINCE_0_5_0~155 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=07d1c6cffcfa0157ed447df3ef393c213306859f;p=evince.git Make close button in toolbar editor default. --- diff --git a/ChangeLog b/ChangeLog index 57718948..e5f452fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-09-17 Wouter Bolsterlee + + * shell/ev-window.c: (ev_window_cmd_edit_toolbar): + + Make close button default. Fix for 316383. + 2005-09-17 Nickolay V. Shmyrev * shell/ev-properties-dialog.c: (ev_properties_dialog_init): diff --git a/shell/ev-window.c b/shell/ev-window.c index 870818ad..fe3d6241 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2070,6 +2070,7 @@ ev_window_cmd_edit_toolbar (GtkAction *action, EvWindow *ev_window) GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); + gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE); gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)), 5); gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->vbox), 2); gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);