[network-manager-applet/dcbw/indicator-icon-name] asdfasdf



commit 8278aa060a638db70859d8be5e1a1ac799d0df01
Author: Dan Williams <dcbw redhat com>
Date:   Tue Feb 17 11:25:06 2015 -0600

    asdfasdf

 src/ap-menu-item.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/ap-menu-item.c b/src/ap-menu-item.c
index a622eb2..eecab5d 100644
--- a/src/ap-menu-item.c
+++ b/src/ap-menu-item.c
@@ -134,9 +134,14 @@ update_icon (NMNetworkMenuItem *item, NMApplet *applet)
        }
 
 #ifdef ENABLE_INDICATOR
-       gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), gtk_image_new_from_pixbuf (pixbuf));
-       /* For some reason we must always re-set always-show after setting the image */
-       gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);
+       {
+//             GtkWidget *image = gtk_image_new_from_pixbuf (pixbuf);
+               GtkWidget *image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);
+
+               gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+               /* For some reason we must always re-set always-show after setting the image */
+               gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);
+       }
 #else
        gtk_image_set_from_pixbuf (GTK_IMAGE (priv->strength), pixbuf);
 #endif


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