[gnome-system-monitor] Remove auto-expansion code on search until it gets fixed
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Remove auto-expansion code on search until it gets fixed
- Date: Thu, 1 Aug 2013 22:34:16 +0000 (UTC)
commit 584d3ff0cdd6eac2aacacc6fdaa48a2b30ff4090
Author: Robert Roth <robert roth off gmail com>
Date: Fri Aug 2 00:13:34 2013 +0300
Remove auto-expansion code on search until it gets fixed
src/proctable.cpp | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/proctable.cpp b/src/proctable.cpp
index 133681b..09eacf7 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -324,10 +324,12 @@ gboolean process_visibility_func (GtkTreeModel *model,
}
match |= !search_equal_func (model, 0, search_text, iter, data);
-
- if (match && (strlen (search_text) > 0)) {
- gtk_tree_view_expand_to_path (GTK_TREE_VIEW (app->tree), tree_path);
- }
+ // TODO auto-expand items not matching the search string but having matching children
+ // complicated because of treestore nested in treemodelfilter nested in treemodelsort
+ // expand to path requires the path string in the treemodelsort, but tree_path is the path in the
double nested treestore
+ //if (match && (strlen (search_text) > 0)) {
+ // gtk_tree_view_expand_to_path (GTK_TREE_VIEW (app->tree), tree_path);
+ //}
} else match = !search_equal_func (model, 0, search_text, iter, data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]