[tracker/tracker-needle-model: 4/6] needle: Fix the result store to return the correct n_children for the root.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-needle-model: 4/6] needle: Fix the result store to return the correct n_children for the root.
- Date: Thu, 17 Mar 2011 18:12:39 +0000 (UTC)
commit db7284e12720172b625ac7f3eb69a9457716a0f4
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Mar 17 18:44:53 2011 +0100
needle: Fix the result store to return the correct n_children for the root.
src/tracker-needle/tracker-result-store.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-needle/tracker-result-store.vala b/src/tracker-needle/tracker-result-store.vala
index 0566781..cfd7d71 100644
--- a/src/tracker-needle/tracker-result-store.vala
+++ b/src/tracker-needle/tracker-result-store.vala
@@ -471,7 +471,7 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
public int iter_n_children (Gtk.TreeIter? iter) {
if (iter == null) {
- return filled_categories_count ();
+ return categories.length;
}
if (iter.user_data2 != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]