Updating branch refs/heads/master
         to ee0e367f076757823c6c13756df1156ee69d6ccc (commit)
       from a0ed1ca7219b1de960b912d0bb6eb83d0a893b21 (commit)

commit ee0e367f076757823c6c13756df1156ee69d6ccc
Author: Mike Massonnet <[email protected]>
Date:   Fri May 21 16:08:10 2010 +0200

    Fix bug retrieving bad PID from treeview
    
    Use the model_filter to retrieve the correct selected path and therefore
    the right PID.

 src/process-tree-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/process-tree-view.c b/src/process-tree-view.c
index bb99512..7a565f4 100644
--- a/src/process-tree-view.c
+++ b/src/process-tree-view.c
@@ -336,7 +336,7 @@ treeview_clicked (XtmProcessTreeView *treeview, 
GdkEventButton *event)
                GtkTreePath *path;
                GtkTreeIter iter;
 
-               model = GTK_TREE_MODEL (treeview->model);
+               model = GTK_TREE_MODEL (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);
 
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to