[maemo-commits] [maemo-commits] r13371 - projects/haf/trunk/gtk+/gtk
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Aug 23 14:36:55 EEST 2007
- Previous message: [maemo-commits] r13370 - in projects/haf/trunk/gtk+: . docs/reference docs/reference/gtk/tmpl gtk
- Next message: [maemo-commits] r13372 - projects/haf/trunk/gtk+/gtk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: xan
Date: 2007-08-23 14:36:53 +0300 (Thu, 23 Aug 2007)
New Revision: 13371
Modified:
projects/haf/trunk/gtk+/gtk/gtktreeview.c
Log:
Allow to move focus on all nodes for cursor-only navigation.
Modified: projects/haf/trunk/gtk+/gtk/gtktreeview.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/gtktreeview.c 2007-08-23 10:28:25 UTC (rev 13370)
+++ projects/haf/trunk/gtk+/gtk/gtktreeview.c 2007-08-23 11:36:53 UTC (rev 13371)
@@ -10595,6 +10595,9 @@
GtkTreePath *cursor_path = NULL;
GtkRBTree *tree;
GtkRBNode *node;
+#if defined(MAEMO_CHANGES)
+ gboolean cursor_only;
+#endif
if (! GTK_WIDGET_HAS_FOCUS (tree_view))
return FALSE;
@@ -10609,9 +10612,20 @@
if (_gtk_tree_view_find_node (tree_view, cursor_path, &tree, &node))
return FALSE;
+#if defined(MAEMO_CHANGES)
+ g_object_get (gtk_widget_get_settings (GTK_WIDGET (tree_view)),
+ "gtk-keynav-cursor-only", &cursor_only,
+ NULL);
+
+ if (cursor_only == FALSE)
+ {
+#endif
/* Don't handle the event if we aren't an expander */
if (!((node->flags & GTK_RBNODE_IS_PARENT) == GTK_RBNODE_IS_PARENT))
return FALSE;
+#if defined(MAEMO_CHANGES)
+ }
+#endif
if (!logical
&& gtk_widget_get_direction (GTK_WIDGET (tree_view)) == GTK_TEXT_DIR_RTL)
- Previous message: [maemo-commits] r13370 - in projects/haf/trunk/gtk+: . docs/reference docs/reference/gtk/tmpl gtk
- Next message: [maemo-commits] r13372 - projects/haf/trunk/gtk+/gtk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
