summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-10-15 12:04:09 +0200
committerStefano Karapetsas <[email protected]>2014-10-15 12:04:09 +0200
commite90e46ed381f215e05d1739b27506fd16c30e0eb (patch)
treed6d3dfb7b604a20aef4dce14e0a875a306f575a6
parent3ac6e14d20c1dfea42b4ae1e2df1967275f2dc7e (diff)
downloadmate-media-e90e46ed381f215e05d1739b27506fd16c30e0eb.tar.bz2
mate-media-e90e46ed381f215e05d1739b27506fd16c30e0eb.tar.xz
Fix status icon visibility
-rw-r--r--mate-volume-control/src/gvc-applet.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mate-volume-control/src/gvc-applet.c b/mate-volume-control/src/gvc-applet.c
index ab2d2cc..3cb691f 100644
--- a/mate-volume-control/src/gvc-applet.c
+++ b/mate-volume-control/src/gvc-applet.c
@@ -144,12 +144,16 @@ update_icon_output (GvcApplet *applet)
gvc_stream_status_icon_set_control (applet->priv->icon_output, control);
- if (control != NULL)
+ if (control != NULL) {
+ g_debug ("Output icon enabled");
gtk_status_icon_set_visible (GTK_STATUS_ICON (applet->priv->icon_output),
TRUE);
- else
+ }
+ else {
+ g_debug ("There is no output stream/control, output icon disabled");
gtk_status_icon_set_visible (GTK_STATUS_ICON (applet->priv->icon_output),
FALSE);
+ }
}
static void
@@ -230,7 +234,6 @@ on_context_state_notify (MateMixerContext *context,
break;
case MATE_MIXER_STATE_READY:
- case MATE_MIXER_STATE_CONNECTING:
update_default_input_stream (applet);
/* Each status change may affect the visibility of the icons */
@@ -275,9 +278,6 @@ gvc_applet_start (GvcApplet *applet)
g_warning ("Failed to connect to a sound system");
}
- gtk_status_icon_set_visible (GTK_STATUS_ICON (applet->priv->icon_output), FALSE);
- gtk_status_icon_set_visible (GTK_STATUS_ICON (applet->priv->icon_input), FALSE);
-
g_debug ("Applet has been started");
applet->priv->running = TRUE;