diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-19 16:01:46 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-19 16:01:46 -0600 |
commit | 4b695bacf20b7247f6b16483ede5e5d8b51dd355 (patch) | |
tree | 498ae73530a5aba219866f129f0420f9fabfb18a /src/main.c | |
parent | aee4659081bbca43cb3e7d11bc3263e530876a86 (diff) | |
download | ayatana-indicator-sound-4b695bacf20b7247f6b16483ede5e5d8b51dd355.tar.gz ayatana-indicator-sound-4b695bacf20b7247f6b16483ede5e5d8b51dd355.tar.bz2 ayatana-indicator-sound-4b695bacf20b7247f6b16483ede5e5d8b51dd355.zip |
move max_volume into a reusable 'options' class
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -46,6 +46,7 @@ on_bus_acquired(GDBusConnection *connection, gpointer user_data) { MediaPlayerList * playerlist = NULL; + IndicatorSoundOptions * options = NULL; VolumeControlPulse * volume = NULL; AccountsServiceUser * accounts = NULL; @@ -57,11 +58,13 @@ on_bus_acquired(GDBusConnection *connection, accounts = accounts_service_user_new(); } - volume = volume_control_pulse_new(); + options = indicator_sound_options_gsettings_new(); + volume = volume_control_pulse_new(options); - service = indicator_sound_service_new (playerlist, volume, accounts); + service = indicator_sound_service_new (playerlist, volume, accounts, options); g_clear_object(&playerlist); + g_clear_object(&options); g_clear_object(&volume); g_clear_object(&accounts); } |