aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-02-09 14:08:01 -0600
committerTed Gould <ted@gould.cx>2015-02-09 14:08:01 -0600
commit330b0347282f3e6de77cfe58176ad764495676ec (patch)
tree684950bf782f313e41d67484d136a7b7758ae204 /src/service.vala
parent89466547b9547e0786e3919acab787f669798443 (diff)
downloadayatana-indicator-sound-330b0347282f3e6de77cfe58176ad764495676ec.tar.gz
ayatana-indicator-sound-330b0347282f3e6de77cfe58176ad764495676ec.tar.bz2
ayatana-indicator-sound-330b0347282f3e6de77cfe58176ad764495676ec.zip
Make it so that we can inject the volume control object into the service
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service.vala b/src/service.vala
index b435726..c63f5c0 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -18,7 +18,7 @@
*/
public class IndicatorSound.Service: Object {
- public Service (MediaPlayerList playerlist) {
+ public Service (MediaPlayerList playerlist, VolumeControl volume) {
sync_notification = new Notify.Notification(_("Volume"), "", "audio-volume-muted");
this.notification_server_watch = GLib.Bus.watch_name(GLib.BusType.SESSION,
"org.freedesktop.Notifications",
@@ -32,7 +32,7 @@ public class IndicatorSound.Service: Object {
this.settings.bind ("visible", this, "visible", SettingsBindFlags.GET);
this.notify["visible"].connect ( () => this.update_root_icon () );
- this.volume_control = new VolumeControlPulse ();
+ this.volume_control = volume;
/* If we're on the greeter, don't export */
if (GLib.Environment.get_user_name() != "lightdm") {