[Xfce4-commits] [apps/xfce4-taskmanager] 13/20: Fix useless indentation (bug 14401)

noreply at xfce.org noreply at xfce.org
Wed May 30 22:00:27 CEST 2018


This is an automated email from the git hooks/post-receive script.

l   a   n   d   r   y       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-taskmanager.

commit 295e635606d7348b22c6969a24a9f6a671dd759e
Author: rim <rozhuk.im at gmail.com>
Date:   Wed May 30 21:50:17 2018 +0200

    Fix useless indentation (bug 14401)
---
 src/process-tree-view.c | 37 ++++++++++++++++---------------------
 1 file changed, 16 insertions(+), 21 deletions(-)

diff --git a/src/process-tree-view.c b/src/process-tree-view.c
index 4975775..cffa79e 100644
--- a/src/process-tree-view.c
+++ b/src/process-tree-view.c
@@ -517,33 +517,28 @@ popup_menu (XtmProcessTreeView *treeview, GPid pid, guint activate_time, gboolea
 static gboolean
 treeview_clicked (XtmProcessTreeView *treeview, GdkEventButton *event)
 {
+	GtkTreeModel *model;
+	GtkTreeSelection *selection;
+	GtkTreePath *path;
+	GtkTreeIter iter;
+	gboolean tree;
 	GPid pid;
 
 	if (event->button != 3)
 		return FALSE;
 
-	{
-		GtkTreeModel *model;
-		GtkTreeSelection *selection;
-		GtkTreePath *path;
-		GtkTreeIter iter;
-		gboolean tree;
-
-		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);
-
-		if (path == NULL)
-			return FALSE;
-
-		gtk_tree_model_get_iter (model, &iter, path);
-		gtk_tree_model_get (model, &iter, XTM_PTV_COLUMN_PID, &pid, -1);
-		gtk_tree_selection_select_path (selection, path);
-		gtk_tree_path_free (path);
+	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);
+	if (path == NULL)
+		return FALSE;
+	gtk_tree_model_get_iter (model, &iter, path);
+	gtk_tree_model_get (model, &iter, XTM_PTV_COLUMN_PID, &pid, -1);
+	gtk_tree_selection_select_path (selection, path);
+	gtk_tree_path_free (path);
 
-		G_DEBUG_FMT ("Found iter with pid %d", pid);
-	}
+	G_DEBUG_FMT ("Found iter with pid %d", pid);
 
 	popup_menu (treeview, pid, event->time, TRUE);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list