[patch] add remove right-click menu item.
- From: Robert Love <rml novell com>
- To: networkmanager-list gnome org
- Subject: [patch] add remove right-click menu item.
- Date: Mon, 20 Jun 2005 17:35:55 -0400
Hey,
Attached patch adds a "Remove From Panel" menu item to the right click
menu. Clicking it does what it advertises. It follows the same style
and format as other panel applets.
Can I apply? / Please apply.
Robert Love
applet/applet.c | 13 +++++++++++++
1 files changed, 13 insertions(+)
diff -u gnome/applet/applet.c gnome/applet/applet.c
--- gnome/applet/applet.c 20 Jun 2005 20:29:18 -0000
+++ gnome/applet/applet.c 20 Jun 2005 20:28:26 -0000
@@ -223,6 +223,11 @@
#endif
}
+void nmwa_quit_cb (NMWirelessApplet *applet)
+{
+ exit (EXIT_SUCCESS);
+}
+
typedef struct DialogCBData
{
char *msg;
@@ -1852,0 +1858,8 @@
+ nmwa_menu_add_separator_item (menu);
+
+ menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Remove From Panel"));
+ g_signal_connect (G_OBJECT (menu_item), "activate", G_CALLBACK (nmwa_quit_cb), NULL);
+ image = gtk_image_new_from_stock (GTK_STOCK_REMOVE, GTK_ICON_SIZE_MENU);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item), image);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]