[tracker/tracker-0.10] tracker-needle: Emit row-changed on categories after adding children to these.



commit 3916d6511a71024b68a990ccf550a70cb883e657
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Mar 17 18:43:42 2011 +0100

    tracker-needle: Emit row-changed on categories after adding children to these.
    
    Also remove a couple silly debug print()s

 src/tracker-needle/tracker-result-store.vala |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-needle/tracker-result-store.vala b/src/tracker-needle/tracker-result-store.vala
index 1091421..0566781 100644
--- a/src/tracker-needle/tracker-result-store.vala
+++ b/src/tracker-needle/tracker-result-store.vala
@@ -105,7 +105,6 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
 				iter.user_data3 = i.to_pointer ();
 
 				path = this.get_path (iter);
-
 				row_changed (path, iter);
 			}
 
@@ -206,6 +205,12 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
 
 				row_inserted (path, iter);
 			}
+
+			iter.user_data2 = null;
+			iter.user_data3 = null;
+			path = get_path (iter);
+
+			row_changed (path, iter);
 		}
 
 		if (running_operations.length == 0) {
@@ -216,8 +221,6 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
 	private void clear_results () {
 		int i, j;
 
-		print ("POSCLAROOO\n");
-
 		for (i = 0; i < categories.length; i++) {
 			CategoryNode *cat = &categories[i];
 			TreeIter iter;
@@ -230,7 +233,6 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
 				iter.user_data2 = &cat.results[j];
 				iter.user_data3 = j.to_pointer ();
 				path = get_path (iter);
-				print ("removing = %s\n", path.to_string ());
 
 				row_deleted (path);
 			}



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