diff options
author | Thomas Haller <thaller@redhat.com> | 2018-06-01 15:08:09 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-06-01 15:08:09 +0200 |
commit | 715e20b9395907eb698f0127a4febc31e9db3582 (patch) | |
tree | f08feb4dfaab7c735811b0ee2777f0f1d6f2b9f6 | |
parent | 387b55a5c313dfc0f103b76f5cf869b0f0f0dbdb (diff) | |
download | network-manager-applet-715e20b9395907eb698f0127a4febc31e9db3582.tar.gz |
applet: check for INDICATOR_ENABLED(applet) in upplet_update_icon()
"with_appindicator" is the global variable set when parsing command
line arguments. It later results in the initialization of applet's
app-indicator instance. We always should check for INDICATOR_ENABLED(),
not "with_appindicator".
-rw-r--r-- | src/applet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/applet.c b/src/applet.c index 9985ecbe..17972945 100644 --- a/src/applet.c +++ b/src/applet.c @@ -2710,7 +2710,7 @@ applet_update_icon (gpointer user_data) case NM_VPN_CONNECTION_STATE_ACTIVATED: icon_name = "nm-vpn-active-lock"; #ifdef WITH_APPINDICATOR - if (with_appindicator) + if (INDICATOR_ENABLED (applet)) icon_name = icon_name_free = g_strdup_printf ("%s-secure", app_indicator_get_icon (applet->app_indicator)); #endif /* WITH_APPINDICATOR */ break; |