From e90e46ed381f215e05d1739b27506fd16c30e0eb Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 15 Oct 2014 12:04:09 +0200 Subject: Fix status icon visibility --- mate-volume-control/src/gvc-applet.c | 12 ++++++------ 1 file 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; -- cgit v1.2.1