[empathy] dont catch key up and down from the treeview
- From: Felix Kaser <kaserf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] dont catch key up and down from the treeview
- Date: Thu, 29 Jul 2010 15:08:27 +0000 (UTC)
commit 2e4f5741143341616ed2cca3bf27a0204483d4ff
Author: Felix Kaser <f kaser gmx net>
Date: Tue Jun 15 15:04:52 2010 +0200
dont catch key up and down from the treeview
it is needed for the navigation. current implementation did catch it from the treeview and propagate it to the live search entry.
libempathy-gtk/empathy-live-search.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c
index b1ed17f..9de2e19 100644
--- a/libempathy-gtk/empathy-live-search.c
+++ b/libempathy-gtk/empathy-live-search.c
@@ -197,6 +197,11 @@ live_search_key_press_event_cb (GtkWidget *widget,
event->keyval == GDK_Control_R)
return FALSE;
+ /* dont forward the arrow up/down key to the entry, it is needed for
+ * navigation in the treeview */
+ if (event->keyval == GDK_Up || event->keyval == GDK_Down)
+ return FALSE;
+
/* realize the widget if it is not realized yet */
gtk_widget_realize (priv->search_entry);
if (!gtk_widget_has_focus (priv->search_entry))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]