[network-manager-applet] applet: add LTE indicator icon and use it



commit ecb991ba194829ed152e060df18ec1d131b3f29e
Author: Dan Williams <dcbw redhat com>
Date:   Fri Sep 7 16:16:37 2012 -0500

    applet: add LTE indicator icon and use it

 icons/22/Makefile.am     |    1 +
 icons/22/nm-tech-lte.png |  Bin 0 -> 158 bytes
 src/applet.c             |    1 +
 src/applet.h             |    1 +
 src/mobile-helpers.c     |    3 ++-
 5 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/icons/22/Makefile.am b/icons/22/Makefile.am
index 3dd7143..217eadc 100644
--- a/icons/22/Makefile.am
+++ b/icons/22/Makefile.am
@@ -65,6 +65,7 @@ icon_DATA = \
 	nm-tech-edge.png \
 	nm-tech-umts.png \
 	nm-tech-hspa.png \
+	nm-tech-lte.png \
 	nm-mb-roam.png \
 	nm-tech-3g.png
 
diff --git a/icons/22/nm-tech-lte.png b/icons/22/nm-tech-lte.png
new file mode 100644
index 0000000..6c507dc
Binary files /dev/null and b/icons/22/nm-tech-lte.png differ
diff --git a/src/applet.c b/src/applet.c
index 07b7a4f..666a23a 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -3024,6 +3024,7 @@ static void nma_icons_free (NMApplet *applet)
 	nma_clear_icon (&applet->mb_tech_edge_icon, applet);
 	nma_clear_icon (&applet->mb_tech_umts_icon, applet);
 	nma_clear_icon (&applet->mb_tech_hspa_icon, applet);
+	nma_clear_icon (&applet->mb_tech_lte_icon, applet);
 	nma_clear_icon (&applet->mb_roaming_icon, applet);
 	nma_clear_icon (&applet->mb_tech_3g_icon, applet);
 
diff --git a/src/applet.h b/src/applet.h
index 685191a..368c7c7 100644
--- a/src/applet.h
+++ b/src/applet.h
@@ -136,6 +136,7 @@ typedef struct
 	GdkPixbuf *		mb_tech_edge_icon;
 	GdkPixbuf *		mb_tech_umts_icon;
 	GdkPixbuf *		mb_tech_hspa_icon;
+	GdkPixbuf *		mb_tech_lte_icon;
 	GdkPixbuf *		mb_roaming_icon;
 	GdkPixbuf *		mb_tech_3g_icon;
 
diff --git a/src/mobile-helpers.c b/src/mobile-helpers.c
index 756166b..cb9c33e 100644
--- a/src/mobile-helpers.c
+++ b/src/mobile-helpers.c
@@ -118,8 +118,9 @@ mobile_helper_get_tech_icon (guint32 tech, NMApplet *applet)
 	case MB_TECH_HSUPA:
 	case MB_TECH_HSPA:
 	case MB_TECH_HSPA_PLUS:
-	case MB_TECH_LTE:
 		return nma_icon_check_and_load ("nm-tech-hspa", &applet->mb_tech_hspa_icon, applet);
+	case MB_TECH_LTE:
+		return nma_icon_check_and_load ("nm-tech-lte", &applet->mb_tech_lte_icon, applet);
 	case MB_TECH_WIMAX:
 	default:
 		return NULL;



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