summaryrefslogtreecommitdiff
path: root/mate-volume-control
diff options
context:
space:
mode:
Diffstat (limited to 'mate-volume-control')
-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;