[tracker] TST: fix segfault



commit 4207c6a43c270c25fcbc4103b7520d36efad4c39
Author: Tshepang Lekhonkhobe <tshepang gmail com>
Date:   Sun May 9 20:23:09 2010 +0200

    TST: fix segfault

 src/tracker-search-tool/tracker-category-view.gs |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-search-tool/tracker-category-view.gs b/src/tracker-search-tool/tracker-category-view.gs
index bb942c6..8607562 100644
--- a/src/tracker-search-tool/tracker-category-view.gs
+++ b/src/tracker-search-tool/tracker-category-view.gs
@@ -82,6 +82,7 @@ class TrackerCategoryView : ScrolledWindow
         treeview.insert_column_with_attributes (-1, "icon", new CellRendererPixbuf (), "pixbuf", 0, null)
         treeview.insert_column_with_attributes (-1, "name", new CellRendererText (), "text", 2, null)
         treeview.set_headers_visible (false)
+        treeview.set_enable_search (false)
 
         var category_selection = treeview.get_selection ()
         category_selection.set_mode (SelectionMode.BROWSE)
@@ -95,12 +96,10 @@ class TrackerCategoryView : ScrolledWindow
     def selection_changed (sel : TreeSelection)
         iter : TreeIter
         model : TreeModel
-
-        sel.get_selected (out model , out iter)
-
         name : weak string
 
-        store.get (iter, CategoryColumns.Name, out name);
+        sel.get_selected (out model, out iter)
+        store.get (iter, CategoryColumns.Name, out name)
 
         if Query is not null
             Query.Category = name



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