aboutsummaryrefslogtreecommitdiff
path: root/hildon
diff options
context:
space:
mode:
authorXabier Rodriguez Calvar <xrcalvar@igalia.com>2010-02-15 19:43:40 +0100
committerXabier Rodriguez Calvar <xrcalvar@igalia.com>2010-02-15 19:46:14 +0100
commit591e3234375b44ad4d9f6c9d85440ea0878c14e4 (patch)
treef538f096173ed0e0802118876864daa845ef8045 /hildon
parenta82355b9e5608f8c70eded70418c18e548e86602 (diff)
Added internal api to disable treeview focus in touch selector column.
Diffstat (limited to 'hildon')
-rw-r--r--hildon/hildon-touch-selector-private.h3
-rw-r--r--hildon/hildon-touch-selector.c7
2 files changed, 10 insertions, 0 deletions
diff --git a/hildon/hildon-touch-selector-private.h b/hildon/hildon-touch-selector-private.h
index eeee475..32e22eb 100644
--- a/hildon/hildon-touch-selector-private.h
+++ b/hildon/hildon-touch-selector-private.h
@@ -31,6 +31,9 @@ hildon_touch_selector_block_changed (HildonTouchSelector *selector);
void G_GNUC_INTERNAL
hildon_touch_selector_unblock_changed (HildonTouchSelector *selector);
+void G_GNUC_INTERNAL
+hildon_touch_selector_column_disable_focus (HildonTouchSelectorColumn *col);
+
G_END_DECLS
#endif
diff --git a/hildon/hildon-touch-selector.c b/hildon/hildon-touch-selector.c
index 7c41c99..1d86eb9 100644
--- a/hildon/hildon-touch-selector.c
+++ b/hildon/hildon-touch-selector.c
@@ -655,6 +655,13 @@ hildon_touch_selector_unblock_changed (HildonTouchSelector *selector)
selector->priv->changed_blocked = FALSE;
}
+void
+hildon_touch_selector_column_disable_focus (HildonTouchSelectorColumn *col)
+{
+ g_return_if_fail (HILDON_IS_TOUCH_SELECTOR_COLUMN (col));
+ GTK_WIDGET_UNSET_FLAGS (GTK_WIDGET (col->priv->tree_view), GTK_CAN_FOCUS);
+}
+
static void
hildon_touch_selector_emit_value_changed (HildonTouchSelector *selector,
gint column)