Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Thu, 09 Jan 2014 16:34:50 UTC Commit: 680a556fffa5311d227f476e8e154d20da638414 https://github.com/geany/geany/commit/680a556fffa5311d227f476e8e154d20da6384...
Log Message: ----------- Find when activating the find entry in the replace dialog
Modified Paths: -------------- src/search.c
Modified: src/search.c 12 files changed, 12 insertions(+), 0 deletions(-) =================================================================== @@ -170,6 +170,9 @@ enum on_replace_dialog_response(GtkDialog *dialog, gint response, gpointer user_data);
static void +on_replace_find_entry_activate(GtkEntry *entry, gpointer user_data); + +static void on_replace_entry_activate(GtkEntry *entry, gpointer user_data);
static void @@ -648,6 +651,8 @@ static void create_replace_dialog(void) g_signal_connect(gtk_bin_get_child(GTK_BIN(entry_find)), "key-press-event", G_CALLBACK(on_widget_key_pressed_set_focus), gtk_bin_get_child(GTK_BIN(entry_replace))); + g_signal_connect(gtk_bin_get_child(GTK_BIN(entry_find)), "activate", + G_CALLBACK(on_replace_find_entry_activate), NULL); g_signal_connect(gtk_bin_get_child(GTK_BIN(entry_replace)), "activate", G_CALLBACK(on_replace_entry_activate), NULL); g_signal_connect(replace_dlg.dialog, "response", @@ -1370,6 +1375,13 @@ static gboolean int_search_flags(gint match_case, gint whole_word, gint regexp,
static void +on_replace_find_entry_activate(GtkEntry *entry, gpointer user_data) +{ + on_replace_dialog_response(NULL, GEANY_RESPONSE_FIND, NULL); +} + + +static void on_replace_entry_activate(GtkEntry *entry, gpointer user_data) { on_replace_dialog_response(NULL, GEANY_RESPONSE_REPLACE, NULL);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).