[gedit] Revert "search: set focus to view under cursor"
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Revert "search: set focus to view under cursor"
- Date: Sun, 18 Jan 2015 14:49:45 +0000 (UTC)
commit 7d17f299c2617445a3b9c6cc4c6564b74507cc80
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Jan 18 15:49:12 2015 +0100
Revert "search: set focus to view under cursor"
This reverts commit 5a20204ffde5b7dccee09566d93b3514a4f7c00d.
I pushed a local commit by mistaks
gedit/gedit-view-frame.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index a4bfe0b..fb67e14 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -575,9 +575,7 @@ search_widget_key_press_event (GtkWidget *widget,
guint modifiers = gtk_accelerator_get_default_mod_mask ();
/* Close window */
- if (event->keyval == GDK_KEY_Tab ||
- event->keyval == GDK_KEY_Return ||
- event->keyval == GDK_KEY_KP_Enter)
+ if (event->keyval == GDK_KEY_Tab)
{
hide_search_widget (frame, FALSE);
gtk_widget_grab_focus (GTK_WIDGET (frame->priv->view));
@@ -1573,7 +1571,7 @@ gedit_view_frame_init (GeditViewFrame *frame)
G_CALLBACK (mark_set_cb),
frame);
- g_signal_connect (frame->priv->search_entry,
+ g_signal_connect (frame->priv->revealer,
"key-press-event",
G_CALLBACK (search_widget_key_press_event),
frame);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]