[Xfce4-commits] [apps/xfce4-taskmanager] 02/03: Reorder the signals in the process context menu (#11395)

noreply at xfce.org noreply at xfce.org
Tue Dec 23 21:48:55 CET 2014


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

landry pushed a commit to branch master
in repository apps/xfce4-taskmanager.

commit 67eb347a0064156d326dd956996343f1a65e974c
Author: Landry Breuil <landry at xfce.org>
Date:   Tue Dec 23 21:46:05 2014 +0100

    Reorder the signals in the process context menu (#11395)
    
    Stop/Cont, then Terminate, then Kill.
---
 src/process-tree-view.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/process-tree-view.c b/src/process-tree-view.c
index 01be48b..dcbfd6d 100644
--- a/src/process-tree-view.c
+++ b/src/process-tree-view.c
@@ -426,12 +426,6 @@ build_context_menu (XtmProcessTreeView *treeview, guint pid)
 
 	menu = gtk_menu_new ();
 
-	mi = gtk_menu_item_new_with_label (_("Terminate"));
-	g_object_set_data (G_OBJECT (mi), "pid", GUINT_TO_POINTER (pid));
-	g_object_set_data (G_OBJECT (mi), "treeview", treeview);
-	gtk_container_add (GTK_CONTAINER (menu), mi);
-	g_signal_connect (mi, "activate", G_CALLBACK (cb_send_signal), GINT_TO_POINTER (XTM_SIGNAL_TERMINATE));
-
 	if (!pid_is_sleeping (pid))
 	{
 		mi = gtk_menu_item_new_with_label (_("Stop"));
@@ -447,6 +441,12 @@ build_context_menu (XtmProcessTreeView *treeview, guint pid)
 		g_signal_connect (mi, "activate", G_CALLBACK (cb_send_signal), GINT_TO_POINTER (XTM_SIGNAL_CONTINUE));
 	}
 
+	mi = gtk_menu_item_new_with_label (_("Terminate"));
+	g_object_set_data (G_OBJECT (mi), "pid", GUINT_TO_POINTER (pid));
+	g_object_set_data (G_OBJECT (mi), "treeview", treeview);
+	gtk_container_add (GTK_CONTAINER (menu), mi);
+	g_signal_connect (mi, "activate", G_CALLBACK (cb_send_signal), GINT_TO_POINTER (XTM_SIGNAL_TERMINATE));
+
 	mi = gtk_menu_item_new_with_label (_("Kill"));
 	g_object_set_data (G_OBJECT (mi), "pid", GUINT_TO_POINTER (pid));
 	gtk_container_add (GTK_CONTAINER (menu), mi);

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


More information about the Xfce4-commits mailing list