nm-applet patch



Hey,

Here's a tiny patch that changes the stock icon used for nm-applet.
The icon theme i'm using (gnome icon-theme inherited) has a menu-sized
icon for GTK_STOCK_DIALOG_AUTHENTICATION but not for
"gnome-lockscreen".

Regards,

Jeroen
? icon.patch
Index: gnome/applet/menu-items.c
===================================================================
RCS file: /cvs/gnome/NetworkManager/gnome/applet/menu-items.c,v
retrieving revision 1.8
diff -u -p -r1.8 menu-items.c
--- gnome/applet/menu-items.c	9 Oct 2005 04:39:49 -0000	1.8
+++ gnome/applet/menu-items.c	9 Oct 2005 21:18:18 -0000
@@ -255,7 +255,9 @@ void network_menu_item_update (NMNetwork
 	g_object_set (item->security_image, "visible", is_encrypted, NULL);
 
 	if (wireless_network_get_encrypted (network))
-		gtk_image_set_from_stock (GTK_IMAGE (item->security_image), "gnome-lockscreen", GTK_ICON_SIZE_MENU);
+		gtk_image_set_from_stock (GTK_IMAGE (item->security_image),
+					  GTK_STOCK_DIALOG_AUTHENTICATION,
+					  GTK_ICON_SIZE_MENU);
 	else
 		gtk_image_set_from_stock (GTK_IMAGE (item->security_image), NULL, GTK_ICON_SIZE_MENU);
 }

Attachment: nm-applet-menuicon.png
Description: PNG image



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]