diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2009-12-15 16:07:16 +0200 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2009-12-15 16:07:16 +0200 |
commit | ae23b731332c510f78eb486805aa23b37c0ea97c (patch) | |
tree | 1b2496c1017e2a79d3fc13ca73ef02b6a92d32c7 /hildon | |
parent | 3705ae817bf6460c079324e57baaa411ca7959ca (diff) |
Fix hildon_touch_selector_get_last_activated_row ()
Fix another public method that is not properly hidding the
GtkTreeModelFilter. Reported by Jan-Arne Petersen.
Diffstat (limited to 'hildon')
-rw-r--r-- | hildon/hildon-touch-selector.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hildon/hildon-touch-selector.c b/hildon/hildon-touch-selector.c index 9df17eb..5e89f6d 100644 --- a/hildon/hildon-touch-selector.c +++ b/hildon/hildon-touch-selector.c @@ -781,18 +781,20 @@ hildon_touch_selector_row_activated_cb (GtkTreeView *tree_view, gpointer user_data) { HildonTouchSelectorColumn *selector_column = NULL; - GtkTreeModel *model = NULL; + GtkTreePath *child_path; g_return_if_fail (HILDON_IS_TOUCH_SELECTOR_COLUMN (user_data)); selector_column = HILDON_TOUCH_SELECTOR_COLUMN (user_data); - model = selector_column->priv->model; - if (selector_column->priv->last_activated != NULL) { gtk_tree_row_reference_free (selector_column->priv->last_activated); } - selector_column->priv->last_activated = gtk_tree_row_reference_new (model, path); + child_path = gtk_tree_model_filter_convert_path_to_child_path (GTK_TREE_MODEL_FILTER (selector_column->priv->filter), + path); + selector_column->priv->last_activated = gtk_tree_row_reference_new (selector_column->priv->model, + child_path); + gtk_tree_path_free (child_path); } static void |