From 64fbd9eb65a2cd9e1bf003a1599c064469864e95 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Tue, 2 Feb 2010 12:56:52 -0800 Subject: default sink scenario implemented for now, simplification of indicator pattern --- src/indicator-sound.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/indicator-sound.c') diff --git a/src/indicator-sound.c b/src/indicator-sound.c index 7356e3c..e36c03f 100644 --- a/src/indicator-sound.c +++ b/src/indicator-sound.c @@ -60,7 +60,6 @@ struct _IndicatorSoundClass { struct _IndicatorSound { IndicatorObject parent; IndicatorServiceManager *service; - guint chosen_sink; }; // GObject Boiler plate GType indicator_sound_get_type (void); @@ -115,8 +114,6 @@ static void indicator_sound_init (IndicatorSound *self) { /* Set good defaults */ self->service = NULL; - /* For now we stick to 0 for defaults*/ - self->chosen_sink = 0; /* Now let's fire these guys up. */ self->service = indicator_service_manager_new_version(INDICATOR_SOUND_DBUS_NAME, INDICATOR_SOUND_DBUS_VERSION); @@ -221,7 +218,6 @@ static GtkWidget* get_slider(IndicatorObject * io) static gboolean slider_value_changed_event_cb(GtkRange *range, GtkScrollType scroll, double value, gpointer user_data) { - IndicatorSound* sound = INDICATOR_SOUND(user_data); - org_ayatana_indicator_sound_set_sink_volume(sound_dbus_proxy, sound->chosen_sink, value, NULL); + org_ayatana_indicator_sound_set_sink_volume(sound_dbus_proxy, value, NULL); return FALSE; } -- cgit v1.2.3