[Xfce4-commits] [apps/xfce4-taskmanager] 01/01: Use the correct model on right click.
noreply at xfce.org
noreply at xfce.org
Thu Dec 4 22:32:51 CET 2014
This is an automated email from the git hooks/post-receive script.
peter pushed a commit to branch master
in repository apps/xfce4-taskmanager.
commit d3800112a3313825648765119f2e12603e69305b
Author: Peter de Ridder <cavalier at the-cavalry.org>
Date: Thu Dec 4 22:31:47 2014 +0100
Use the correct model on right click.
---
src/process-tree-view.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/process-tree-view.c b/src/process-tree-view.c
index 53c8a33..3a76f30 100644
--- a/src/process-tree-view.c
+++ b/src/process-tree-view.c
@@ -521,8 +521,10 @@ treeview_clicked (XtmProcessTreeView *treeview, GdkEventButton *event)
GtkTreeSelection *selection;
GtkTreePath *path;
GtkTreeIter iter;
+ gboolean tree;
- model = GTK_TREE_MODEL (treeview->model_filter);
+ g_object_get (treeview->settings, "process-tree", &tree, NULL);
+ model = GTK_TREE_MODEL (tree ? treeview->model_tree : treeview->model_filter);
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (treeview), (gint)event->x, (gint)event->y, &path, NULL, NULL, NULL);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list