Revision: 965 http://svn.sourceforge.net/geany/?rev=965&view=rev Author: ntrel Date: 2006-11-04 03:26:31 -0800 (Sat, 04 Nov 2006)
Log Message: ----------- Fix pressing enter to search from the Find dialog.
Modified Paths: -------------- trunk/ChangeLog trunk/src/search.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-11-03 15:09:13 UTC (rev 964) +++ trunk/ChangeLog 2006-11-04 11:26:31 UTC (rev 965) @@ -1,3 +1,8 @@ +2006-11-04 Nick Treleaven nick.treleaven@btinternet.com + + * src/search.c: Fix pressing enter to search from the Find dialog. + + 2006-11-03 Nick Treleaven nick.treleaven@btinternet.com
* src/msgwindow.c:
Modified: trunk/src/search.c =================================================================== --- trunk/src/search.c 2006-11-03 15:09:13 UTC (rev 964) +++ trunk/src/search.c 2006-11-04 11:26:31 UTC (rev 965) @@ -707,6 +707,14 @@
static void +on_find_entry_activate(GtkEntry *entry, gpointer user_data) +{ + on_find_dialog_response(NULL, GEANY_RESPONSE_FIND, + lookup_widget(GTK_WIDGET(entry), "entry")); +} + + +static void on_find_dialog_response(GtkDialog *dialog, gint response, gpointer user_data) { if (response == GTK_RESPONSE_CANCEL) @@ -776,10 +784,9 @@
static void -on_find_entry_activate(GtkEntry *entry, gpointer user_data) +on_replace_entry_activate(GtkEntry *entry, gpointer user_data) { - on_find_dialog_response(NULL, GTK_RESPONSE_ACCEPT, - lookup_widget(GTK_WIDGET(entry), "entry")); + on_replace_dialog_response(NULL, GEANY_RESPONSE_REPLACE, NULL); }
@@ -896,13 +903,6 @@ }
-static void -on_replace_entry_activate(GtkEntry *entry, gpointer user_data) -{ - on_replace_dialog_response(NULL, GEANY_RESPONSE_REPLACE, NULL); -} - - static gboolean on_combo_entry_key_pressed(GtkWidget *widget, GdkEventKey *event, gpointer user_data) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.