[gthumb] location dialog: allow to open pressing Enter



commit 25f4b1570adf9ef6a10fb9e5fb7f9b65683df964
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Jul 14 08:48:32 2017 +0200

    location dialog: allow to open pressing Enter
    
    set the Ok button as the default widget

 gthumb/dlg-location.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/dlg-location.c b/gthumb/dlg-location.c
index f64b259..23491db 100644
--- a/gthumb/dlg-location.c
+++ b/gthumb/dlg-location.c
@@ -418,7 +418,7 @@ dlg_location (GthBrowser *browser)
                                _("Open"), GTK_RESPONSE_OK,
                                NULL);
        _gtk_dialog_add_class_to_response (GTK_DIALOG (data->dialog), GTK_RESPONSE_OK, 
GTK_STYLE_CLASS_SUGGESTED_ACTION);
-
+       gtk_widget_grab_default (gtk_dialog_get_widget_for_response (GTK_DIALOG (data->dialog), 
GTK_RESPONSE_OK));
        gth_browser_set_dialog (browser, "location", data->dialog);
 
        /* set the widget data */


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