Don't beep when pressing escape to close the Find or Replace dialogs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1421 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
a581744a05
commit
51b4f03a2d
@ -11,6 +11,8 @@
|
|||||||
* src/keybindings.c:
|
* src/keybindings.c:
|
||||||
Ignore Caps Lock in keybindings_got_event() (could cause problems
|
Ignore Caps Lock in keybindings_got_event() (could cause problems
|
||||||
with e.g. Shift-F9).
|
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>
|
2007-03-23 Nick Treleaven <nick.treleaven@btinternet.com>
|
||||||
|
@ -815,7 +815,7 @@ on_find_entry_activate(GtkEntry *entry, gpointer user_data)
|
|||||||
static void
|
static void
|
||||||
on_find_dialog_response(GtkDialog *dialog, gint response, gpointer user_data)
|
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);
|
gtk_widget_hide(widgets.find_dialog);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -879,8 +879,6 @@ on_find_dialog_response(GtkDialog *dialog, gint response, gpointer user_data)
|
|||||||
search_mark(idx, search_data.text, search_data.flags);
|
search_mark(idx, search_data.text, search_data.flags);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note: we can get GTK_RESPONSE_DELETE_EVENT responses when ESC is pressed
|
|
||||||
}
|
}
|
||||||
if (check_close)
|
if (check_close)
|
||||||
gtk_widget_hide(widgets.find_dialog);
|
gtk_widget_hide(widgets.find_dialog);
|
||||||
@ -907,7 +905,7 @@ on_replace_dialog_response(GtkDialog *dialog, gint response, gpointer user_data)
|
|||||||
gboolean close_window;
|
gboolean close_window;
|
||||||
gchar *find, *replace;
|
gchar *find, *replace;
|
||||||
|
|
||||||
if (response == GTK_RESPONSE_CANCEL)
|
if (response == GTK_RESPONSE_CANCEL || response == GTK_RESPONSE_DELETE_EVENT)
|
||||||
{
|
{
|
||||||
gtk_widget_hide(widgets.replace_dialog);
|
gtk_widget_hide(widgets.replace_dialog);
|
||||||
return;
|
return;
|
||||||
@ -1007,7 +1005,6 @@ on_replace_dialog_response(GtkDialog *dialog, gint response, gpointer user_data)
|
|||||||
if (close_window) gtk_widget_hide(widgets.replace_dialog);
|
if (close_window) gtk_widget_hide(widgets.replace_dialog);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Note: we can get GTK_RESPONSE_DELETE_EVENT responses when ESC is pressed
|
|
||||||
}
|
}
|
||||||
g_free(find);
|
g_free(find);
|
||||||
g_free(replace);
|
g_free(replace);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user