Revision: 1421 http://svn.sourceforge.net/geany/?rev=1421&view=rev Author: ntrel Date: 2007-03-24 09:27:19 -0700 (Sat, 24 Mar 2007)
Log Message: ----------- Don't beep when pressing escape to close the Find or Replace dialogs.
Modified Paths: -------------- trunk/ChangeLog trunk/src/search.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-03-24 16:10:20 UTC (rev 1420) +++ trunk/ChangeLog 2007-03-24 16:27:19 UTC (rev 1421) @@ -11,6 +11,8 @@ * src/keybindings.c: Ignore Caps Lock in keybindings_got_event() (could cause problems with e.g. Shift-F9). + * src/search.c: + Don't beep when pressing escape to close the Find or Replace dialogs.
2007-03-23 Nick Treleaven nick.treleaven@btinternet.com
Modified: trunk/src/search.c =================================================================== --- trunk/src/search.c 2007-03-24 16:10:20 UTC (rev 1420) +++ trunk/src/search.c 2007-03-24 16:27:19 UTC (rev 1421) @@ -815,7 +815,7 @@ static void on_find_dialog_response(GtkDialog *dialog, gint response, gpointer user_data) { - if (response == GTK_RESPONSE_CANCEL) + if (response == GTK_RESPONSE_CANCEL || response == GTK_RESPONSE_DELETE_EVENT) gtk_widget_hide(widgets.find_dialog); else { @@ -879,8 +879,6 @@ search_mark(idx, search_data.text, search_data.flags); break; } - - // Note: we can get GTK_RESPONSE_DELETE_EVENT responses when ESC is pressed } if (check_close) gtk_widget_hide(widgets.find_dialog); @@ -907,7 +905,7 @@ gboolean close_window; gchar *find, *replace;
- if (response == GTK_RESPONSE_CANCEL) + if (response == GTK_RESPONSE_CANCEL || response == GTK_RESPONSE_DELETE_EVENT) { gtk_widget_hide(widgets.replace_dialog); return; @@ -1007,7 +1005,6 @@ if (close_window) gtk_widget_hide(widgets.replace_dialog); break; } - // Note: we can get GTK_RESPONSE_DELETE_EVENT responses when ESC is pressed } g_free(find); g_free(replace);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.