From d1788f9e65073e31af39d638d72fcd2e0854ecf7 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 30 Sep 2011 18:14:52 +0200 Subject: src/app-indicator.c: hide first in passive mode and add comment about it --- src/app-indicator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/app-indicator.c') diff --git a/src/app-indicator.c b/src/app-indicator.c index 285abd6..f885cc7 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -1546,12 +1546,13 @@ status_icon_changes (AppIndicator * self, gpointer data) switch (app_indicator_get_status(self)) { case APP_INDICATOR_STATUS_PASSIVE: + /* hide first to avoid that the change is visible to the user */ + gtk_status_icon_set_visible(icon, FALSE); longname = append_panel_icon_suffix(app_indicator_get_icon(self)); if (gtk_icon_theme_has_icon (icon_theme, longname)) gtk_status_icon_set_from_icon_name(icon, longname); else gtk_status_icon_set_from_icon_name(icon, app_indicator_get_icon(self)); - gtk_status_icon_set_visible(icon, FALSE); break; case APP_INDICATOR_STATUS_ACTIVE: longname = append_panel_icon_suffix(app_indicator_get_icon(self)); -- cgit v1.2.3