[network-manager-applet/menu-rework: 5/18] devices: use active-device icon in menu rather than STOCK_CONNECT



commit 019ed7d4db174d12203050671381a1e42e8ae946
Author: Alexander Sack <asac ubuntu com>
Date:   Fri Sep 18 02:48:56 2009 +0200

    devices: use active-device icon in menu rather than STOCK_CONNECT

 src/applet-device-bt.c    |    2 +-
 src/applet-device-cdma.c  |    2 +-
 src/applet-device-gsm.c   |    2 +-
 src/applet-device-wifi.c  |    2 +-
 src/applet-device-wired.c |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/applet-device-bt.c b/src/applet-device-bt.c
index a84aaad..f182cef 100644
--- a/src/applet-device-bt.c
+++ b/src/applet-device-bt.c
@@ -103,7 +103,7 @@ add_connection_items (NMDevice *device,
  		gtk_widget_set_sensitive (GTK_WIDGET (item), carrier);
 
 		if (connection == active) {
-			image = gtk_image_new_from_stock (GTK_STOCK_CONNECT, GTK_ICON_SIZE_MENU);
+			image = gtk_image_new_from_pixbuf (applet->active_device_icon);
 			gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
 		}
 
diff --git a/src/applet-device-cdma.c b/src/applet-device-cdma.c
index d50c1c3..192a9f3 100644
--- a/src/applet-device-cdma.c
+++ b/src/applet-device-cdma.c
@@ -186,7 +186,7 @@ add_connection_items (NMDevice *device,
 		gtk_image_menu_item_set_always_show_image(GTK_IMAGE_MENU_ITEM(item), TRUE);
 
 		if (connection == active) {
-			image = gtk_image_new_from_stock (GTK_STOCK_CONNECT, GTK_ICON_SIZE_MENU);
+			image = gtk_image_new_from_pixbuf (applet->active_device_icon);
 			gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
 		}
 
diff --git a/src/applet-device-gsm.c b/src/applet-device-gsm.c
index 661f5e1..b1ea9f0 100644
--- a/src/applet-device-gsm.c
+++ b/src/applet-device-gsm.c
@@ -188,7 +188,7 @@ add_connection_items (NMDevice *device,
 		gtk_image_menu_item_set_always_show_image(GTK_IMAGE_MENU_ITEM(item), TRUE);
 
 		if (connection == active) {
-			image = gtk_image_new_from_stock (GTK_STOCK_CONNECT, GTK_ICON_SIZE_MENU);
+			image = gtk_image_new_from_pixbuf (applet->active_device_icon);
 			gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
 		}
 
diff --git a/src/applet-device-wifi.c b/src/applet-device-wifi.c
index 5db1ed4..fa0854e 100644
--- a/src/applet-device-wifi.c
+++ b/src/applet-device-wifi.c
@@ -600,7 +600,7 @@ add_one_ap_menu_item (NMDeviceWifi *device,
 	                                 G_CALLBACK (wireless_menu_item_activate), NULL);
 
 	if (nm_network_menu_item_find_dupe (item, active_ap)) {
-		image = gtk_image_new_from_stock (GTK_STOCK_CONNECT, GTK_ICON_SIZE_MENU);
+		image = gtk_image_new_from_pixbuf (applet->active_device_icon);
 		gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
 	}
 
diff --git a/src/applet-device-wired.c b/src/applet-device-wired.c
index 6cccc71..0828c95 100644
--- a/src/applet-device-wired.c
+++ b/src/applet-device-wired.c
@@ -128,7 +128,7 @@ add_connection_items (NMDevice *device,
  		gtk_widget_set_sensitive (GTK_WIDGET (item), carrier);
 
 		if (connection == active) {
-			image = gtk_image_new_from_stock (GTK_STOCK_CONNECT, GTK_ICON_SIZE_MENU);
+			image = gtk_image_new_from_pixbuf (applet->active_device_icon);
 			gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
 		}
 



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