aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indicator-sound.c2
-rw-r--r--src/sound-service.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c
index ed7de27..6ad6992 100644
--- a/src/indicator-sound.c
+++ b/src/indicator-sound.c
@@ -119,7 +119,6 @@ static void indicator_sound_init (IndicatorSound *self)
g_signal_connect(G_OBJECT(self->service), INDICATOR_SERVICE_MANAGER_SIGNAL_CONNECTION_CHANGE, G_CALLBACK(connection_changed), self);
-
return;
}
@@ -206,6 +205,7 @@ get_menu (IndicatorObject * io)
volume_item = ido_scale_menu_item_new_with_range ("Volume", 0, 100, 1);
menu = GTK_MENU(dbusmenu_gtkmenu_new(INDICATOR_SOUND_DBUS_NAME, INDICATOR_SOUND_DBUS_OBJECT));
gtk_menu_shell_append (GTK_MENU_SHELL (menu), volume_item);
+ gtk_widget_show_all(volume_item);
return menu;
}
diff --git a/src/sound-service.c b/src/sound-service.c
index 31e7b82..cb21e71 100644
--- a/src/sound-service.c
+++ b/src/sound-service.c
@@ -150,8 +150,8 @@ static void context_state_callback(pa_context *c, void *userdata) {
g_debug("PA daemon is ready");
pa_context_set_subscribe_callback(c, subscribed_events_callback, userdata);
pa_operation_unref(pa_context_get_sink_info_list(c, retrieve_complete_sink_list, NULL));
+ pa_operation_unref(pa_context_subscribe(c, PA_SUBSCRIPTION_MASK_SINK, NULL, NULL));
pa_operation_unref(pa_context_subscribe(c, PA_SUBSCRIPTION_MASK_SINK_INPUT, NULL, NULL));
- //pa_operation_unref(pa_context_subscribe(c, PA_SUBSCRIPTION_MASK_SINK, NULL, NULL));
break;
}
}