aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-09-30 18:14:52 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-09-30 18:14:52 +0200
commitd1788f9e65073e31af39d638d72fcd2e0854ecf7 (patch)
tree19a58d4ea5e6af9485ca330d15b1b8e4a911276c /src
parentff65f9f759bad5b929e1057a3ca482ef0107649c (diff)
downloadlibayatana-appindicator-d1788f9e65073e31af39d638d72fcd2e0854ecf7.tar.gz
libayatana-appindicator-d1788f9e65073e31af39d638d72fcd2e0854ecf7.tar.bz2
libayatana-appindicator-d1788f9e65073e31af39d638d72fcd2e0854ecf7.zip
src/app-indicator.c: hide first in passive mode and add comment about it
Diffstat (limited to 'src')
-rw-r--r--src/app-indicator.c3
1 files changed, 2 insertions, 1 deletions
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));