[libdazzle] list-store-adapter: fix path index as pointed out by jrb



commit dd4e03cec8fc8173a35e41461bbd6279d6d256b3
Author: Christian Hergert <chergert redhat com>
Date:   Fri Aug 18 02:00:58 2017 -0700

    list-store-adapter: fix path index as pointed out by jrb

 src/tree/dzl-list-store-adapter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tree/dzl-list-store-adapter.c b/src/tree/dzl-list-store-adapter.c
index e2f14e7..685394c 100644
--- a/src/tree/dzl-list-store-adapter.c
+++ b/src/tree/dzl-list-store-adapter.c
@@ -98,7 +98,7 @@ static GtkTreePath *
 dzl_list_store_adapter_get_path (GtkTreeModel *model,
                                  GtkTreeIter  *iter)
 {
-  return gtk_tree_path_new_from_indices (GPOINTER_TO_INT (iter), -1);
+  return gtk_tree_path_new_from_indices (GPOINTER_TO_INT (iter->user_data), -1);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]