aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-01-27 17:16:02 +0000
committerConor Curran <conor.curran@canonical.com>2010-01-27 17:16:02 +0000
commit3cc04b8a7529f4d7746119a395fd6714337e26b7 (patch)
treeda029b5fb2453a5f4f1873d87f9600b381e3a15e /src
parente483b4902a4fb6ee81de8f24f6f8de65955da083 (diff)
downloadayatana-indicator-sound-3cc04b8a7529f4d7746119a395fd6714337e26b7.tar.gz
ayatana-indicator-sound-3cc04b8a7529f4d7746119a395fd6714337e26b7.tar.bz2
ayatana-indicator-sound-3cc04b8a7529f4d7746119a395fd6714337e26b7.zip
slider now appears
Diffstat (limited to 'src')
-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;
}
}