r1904 - in trunk/src/target/OM-2007/applications/openmoko-rssreader: . src
zecke at sita.openmoko.org
zecke at sita.openmoko.org
Thu May 3 22:43:34 CEST 2007
Author: zecke
Date: 2007-05-03 22:43:33 +0200 (Thu, 03 May 2007)
New Revision: 1904
Modified:
trunk/src/target/OM-2007/applications/openmoko-rssreader/ChangeLog
trunk/src/target/OM-2007/applications/openmoko-rssreader/src/callbacks.c
Log:
2007-05-03 Holger Freyther <zecke at selfish.org>
* src/callbacks.c:
(cb_treeview_keypress_event): Cursor keys are not forwarded to the
search bar but are left to the TreeView
Modified: trunk/src/target/OM-2007/applications/openmoko-rssreader/ChangeLog
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-rssreader/ChangeLog 2007-05-03 20:26:03 UTC (rev 1903)
+++ trunk/src/target/OM-2007/applications/openmoko-rssreader/ChangeLog 2007-05-03 20:43:33 UTC (rev 1904)
@@ -1,3 +1,9 @@
+2007-05-03 Holger Freyther <zecke at selfish.org>
+
+ * src/callbacks.c:
+ (cb_treeview_keypress_event): Cursor keys are not forwarded to the
+ search bar but are left to the TreeView
+
2007-04-29 Holger Hans Peter Freyther <zecke at selfish.org>
* src/rfcdate.h: s/obj/klass/ in the macro. (fixlet)
Modified: trunk/src/target/OM-2007/applications/openmoko-rssreader/src/callbacks.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-rssreader/src/callbacks.c 2007-05-03 20:26:03 UTC (rev 1903)
+++ trunk/src/target/OM-2007/applications/openmoko-rssreader/src/callbacks.c 2007-05-03 20:43:33 UTC (rev 1904)
@@ -31,6 +31,7 @@
#include "rfcdate.h"
#include <libmokoui/moko-tool-box.h>
+#include <gdk/gdkkeysyms.h>
#include <mrss.h>
#include <string.h>
@@ -255,9 +256,14 @@
}
/*
- * route this to the search box
+ * route this to the search box unless this is a cursor movement
*/
gboolean cb_treeview_keypress_event( GtkWidget *tree_view, GdkEventKey *key, struct RSSReaderData *data ) {
+ if ( key->keyval == GDK_Left || key->keyval == GDK_Right ||
+ key->keyval == GDK_Up || key->keyval == GDK_Down ) {
+ return FALSE;
+ }
+
moko_tool_box_set_search_visible (data->box, TRUE);
gtk_entry_set_text (GTK_ENTRY(moko_tool_box_get_entry(data->box)), "");
More information about the commitlog
mailing list