aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXabier Rodriguez Calvar <xrcalvar@igalia.com>2010-02-15 19:45:38 +0100
committerXabier Rodriguez Calvar <xrcalvar@igalia.com>2010-02-15 19:46:15 +0100
commitb98711451647595e758b0d77c6f9921fce8cf9dc (patch)
tree394146bc21edb1a0b36a63eb36e430c5012a359e
parent591e3234375b44ad4d9f6c9d85440ea0878c14e4 (diff)
Disable focus on treeview only for HildonTouchSelectorEntry.
Fixes: NB#113741 (Ctrl+A shortcut not working in Delete fields dialog)
-rw-r--r--hildon/hildon-touch-selector-entry.c3
-rw-r--r--hildon/hildon-touch-selector.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/hildon/hildon-touch-selector-entry.c b/hildon/hildon-touch-selector-entry.c
index 1db7793..efc85a1 100644
--- a/hildon/hildon-touch-selector-entry.c
+++ b/hildon/hildon-touch-selector-entry.c
@@ -52,6 +52,7 @@
*/
#include "hildon-touch-selector.h"
+#include "hildon-touch-selector-private.h"
#include "hildon-touch-selector-entry.h"
#include "hildon-entry.h"
@@ -373,6 +374,8 @@ hildon_touch_selector_entry_set_text_column (HildonTouchSelectorEntry *selector,
column = hildon_touch_selector_get_column (HILDON_TOUCH_SELECTOR (selector), 0);
hildon_touch_selector_column_set_text_column (column, text_column);
+
+ hildon_touch_selector_column_disable_focus (column);
}
/**
diff --git a/hildon/hildon-touch-selector.c b/hildon/hildon-touch-selector.c
index 1d86eb9..7355db4 100644
--- a/hildon/hildon-touch-selector.c
+++ b/hildon/hildon-touch-selector.c
@@ -879,9 +879,6 @@ _create_new_column (HildonTouchSelector * selector,
#endif /* MAEMO_GTK */
gtk_tree_view_set_enable_search (tv, FALSE);
- if (!selector->priv->has_live_search) {
- GTK_WIDGET_UNSET_FLAGS (GTK_WIDGET (tv), GTK_CAN_FOCUS);
- }
filter = gtk_tree_model_filter_new (model, NULL);
gtk_tree_view_set_model (tv, filter);