From 91d0ed218341e6e0c7c9eb47f2f8fa8846b0a806 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Thu, 14 Aug 2014 17:12:58 +0200 Subject: [PATCH] Find in Files: start search when pressing return in all field Patch partly from Yosef Or Boczko, thanks. Closes #959. --- src/search.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/search.c b/src/search.c index 9debcf0d..97ef1131 100644 --- a/src/search.c +++ b/src/search.c @@ -926,6 +926,7 @@ static void create_fif_dialog(void) dir_combo = gtk_combo_box_text_new_with_entry(); entry = gtk_bin_get_child(GTK_BIN(dir_combo)); ui_entry_add_clear_icon(GTK_ENTRY(entry)); + gtk_entry_set_activates_default(GTK_ENTRY(entry), TRUE); gtk_label_set_mnemonic_widget(GTK_LABEL(label1), entry); gtk_entry_set_width_chars(GTK_ENTRY(entry), 50); fif_dlg.dir_combo = dir_combo; @@ -1004,6 +1005,7 @@ static void create_fif_dialog(void) entry_extra = gtk_entry_new(); ui_entry_add_clear_icon(GTK_ENTRY(entry_extra)); + gtk_entry_set_activates_default(GTK_ENTRY(entry_extra), TRUE); gtk_widget_set_sensitive(entry_extra, FALSE); gtk_widget_set_tooltip_text(entry_extra, _("Other options to pass to Grep")); ui_hookup_widget(fif_dlg.dialog, entry_extra, "entry_extra");