aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2014-02-24 14:32:58 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-02-24 14:32:58 +0000
commit33c9db00397aa0314bb937956b4edcadfa1c9c5a (patch)
tree35b2a567d938a01e4572c8845d00bca8853ad22f /src/service.vala
parentb5b262fd799c98abb59bf9dfde51e6d5ac6fe7fd (diff)
parent44a6d9c161b3c8e24187790110a5b3c040bff522 (diff)
downloadayatana-indicator-sound-33c9db00397aa0314bb937956b4edcadfa1c9c5a.tar.gz
ayatana-indicator-sound-33c9db00397aa0314bb937956b4edcadfa1c9c5a.tar.bz2
ayatana-indicator-sound-33c9db00397aa0314bb937956b4edcadfa1c9c5a.zip
Remove the new added allow-applified key, it's moved to shared schemas,
that way the other desktop components don't need to depends on indicator-sound only to read that settings
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/service.vala b/src/service.vala
index b1b5ba9..22e5f1c 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -20,6 +20,7 @@
public class IndicatorSound.Service: Object {
public Service () {
this.settings = new Settings ("com.canonical.indicator.sound");
+ this.sharedsettings = new Settings ("com.ubuntu.sound");
this.volume_control = new VolumeControl ();
@@ -55,7 +56,7 @@ public class IndicatorSound.Service: Object {
}
}
- settings.bind ("allow-amplified-volume", this, "allow-amplified-volume", SettingsBindFlags.GET);
+ sharedsettings.bind ("allow-amplified-volume", this, "allow-amplified-volume", SettingsBindFlags.GET);
}
public int run () {
@@ -103,6 +104,7 @@ public class IndicatorSound.Service: Object {
SimpleActionGroup actions;
HashTable<string, SoundMenu> menus;
Settings settings;
+ Settings sharedsettings;
VolumeControl volume_control;
MediaPlayerList players;
uint player_action_update_id;