~ubuntu-branches/ubuntu/utopic/indicator-sound/utopic

« back to all changes in this revision

Viewing changes to src/service.vala

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Lars Uebernickel
  • Date: 2014-03-05 08:44:14 UTC
  • mfrom: (28.220.26)
  • Revision ID: package-import@ubuntu.com-20140305084414-dhbr4gyekrx12yhq
Tags: 12.10.2+14.04.20140305-0ubuntu1
[ Lars Uebernickel ]
Honor com.canonical.indicator.sound visible (LP: #829648)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
                this.settings = new Settings ("com.canonical.indicator.sound");
23
23
                this.sharedsettings = new Settings ("com.ubuntu.sound");
24
24
 
 
25
                this.settings.bind ("visible", this, "visible", SettingsBindFlags.GET);
 
26
                this.notify["visible"].connect ( () => this.update_root_icon () );
 
27
 
25
28
                this.volume_control = new VolumeControl ();
26
29
 
27
30
                this.players = new MediaPlayerList ();
74
77
                return 0;
75
78
        }
76
79
 
 
80
        public bool visible { get; set; }
 
81
 
77
82
        public bool allow_amplified_volume {
78
83
                get {
79
84
                        return this.max_volume > 1.0;
204
209
                builder.add ("{sv}", "title", new Variant.string (_("Sound")));
205
210
                builder.add ("{sv}", "accessible-desc", new Variant.string (accessible_name));
206
211
                builder.add ("{sv}", "icon", serialize_themed_icon (icon));
207
 
                builder.add ("{sv}", "visible", new Variant.boolean (true));
 
212
                builder.add ("{sv}", "visible", new Variant.boolean (this.visible));
208
213
                root_action.set_state (builder.end());
209
214
        }
210
215