diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-19 12:58:08 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-06-01 14:58:36 +0200 |
commit | 4cab51d6e0202eb12ea816358daa4d8dfc873ba4 (patch) | |
tree | e276fe94b2f984ddbca24c7b51cd5ee6afcb7aa8 | |
parent | 0114ea76aad04f4f8d8ad0fcc8b59c73959d21ab (diff) | |
download | network-manager-applet-4cab51d6e0202eb12ea816358daa4d8dfc873ba4.tar.gz |
src/applet.c: Fix VPN icons when displayed in AppIndicator mode.
We must use premade icons for the indicator VPN case.
The icons are copies of the original with the padlock pre-composited, because
indicators can't use pixbufs; we use the suffix -secure.
This change got introduced with Ubuntu 16.04. Several icon themes have
upstreamed those -secure icons meanwhile (Numix, MATE Faenza,
elementaryXubuntu-dark from murrine-themes).
This patch requires additional icons in nm-applet:
nm-signal-<xx>.png -> nm-signal-<xx>-secure.png
nm-device-wired.png -> nm-device-wired-secure.png
Patch author: Mathieu Trudel-Lapierre <mathieu@canonical.com>
https://bugzilla.gnome.org/show_bug.cgi?id=796258
-rw-r--r-- | src/applet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/applet.c b/src/applet.c index 21e36b60..9985ecbe 100644 --- a/src/applet.c +++ b/src/applet.c @@ -2709,6 +2709,10 @@ applet_update_icon (gpointer user_data) switch (vpn_state) { case NM_VPN_CONNECTION_STATE_ACTIVATED: icon_name = "nm-vpn-active-lock"; +#ifdef WITH_APPINDICATOR + if (with_appindicator) + icon_name = icon_name_free = g_strdup_printf ("%s-secure", app_indicator_get_icon (applet->app_indicator)); +#endif /* WITH_APPINDICATOR */ break; case NM_VPN_CONNECTION_STATE_PREPARE: case NM_VPN_CONNECTION_STATE_NEED_AUTH: |