aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-sound.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-02-02 12:56:52 -0800
committerConor Curran <conor.curran@canonical.com>2010-02-02 12:56:52 -0800
commit64fbd9eb65a2cd9e1bf003a1599c064469864e95 (patch)
treed18c0b59e18ca299fdf71c2755a5c300e4a5a1e5 /src/indicator-sound.c
parenta4608dd1c365f426436ab1ceeca1b9108a72d330 (diff)
downloadayatana-indicator-sound-64fbd9eb65a2cd9e1bf003a1599c064469864e95.tar.gz
ayatana-indicator-sound-64fbd9eb65a2cd9e1bf003a1599c064469864e95.tar.bz2
ayatana-indicator-sound-64fbd9eb65a2cd9e1bf003a1599c064469864e95.zip
default sink scenario implemented for now, simplification of indicator pattern
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r--src/indicator-sound.c6
1 files changed, 1 insertions, 5 deletions
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;
}