From 2b344df118fe82ff89bd878b86e1827d7ff85528 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 3 Mar 2014 10:32:53 +0100 Subject: Honor com.canonical.indicator.sound visible --- src/service.vala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/service.vala b/src/service.vala index 22e5f1c..2b21275 100644 --- a/src/service.vala +++ b/src/service.vala @@ -22,6 +22,9 @@ public class IndicatorSound.Service: Object { this.settings = new Settings ("com.canonical.indicator.sound"); this.sharedsettings = new Settings ("com.ubuntu.sound"); + this.settings.bind ("visible", this, "visible", SettingsBindFlags.GET); + this.notify["visible"].connect ( () => this.update_root_icon () ); + this.volume_control = new VolumeControl (); this.players = new MediaPlayerList (); @@ -74,6 +77,8 @@ public class IndicatorSound.Service: Object { return 0; } + public bool visible { get; set; } + public bool allow_amplified_volume { get { return this.max_volume > 1.0; @@ -204,7 +209,7 @@ public class IndicatorSound.Service: Object { builder.add ("{sv}", "title", new Variant.string (_("Sound"))); builder.add ("{sv}", "accessible-desc", new Variant.string (accessible_name)); builder.add ("{sv}", "icon", serialize_themed_icon (icon)); - builder.add ("{sv}", "visible", new Variant.boolean (true)); + builder.add ("{sv}", "visible", new Variant.boolean (this.visible)); root_action.set_state (builder.end()); } -- cgit v1.2.3 From 5857ca8b2f70630a298ac19aaf8a60668badbb53 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 4 Mar 2014 23:19:09 -0600 Subject: Make sure we have a new dbus-test-runner --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index f026240..4278f7a 100644 --- a/debian/control +++ b/debian/control @@ -6,7 +6,7 @@ XSBC-Original-Maintainer: Conor Curran Build-Depends: debhelper (>= 9.0), cmake, dbus, - dbus-test-runner, + dbus-test-runner (>= 14.04.0+14.04.20140226), dh-translations, gir1.2-accountsservice-1.0, gnome-common, -- cgit v1.2.3 From 43e1c2b00899ecfe37cbba2f3f2d48d1dbedefa1 Mon Sep 17 00:00:00 2001 From: CI bot Date: Wed, 5 Mar 2014 08:44:15 +0000 Subject: Releasing 12.10.2+14.04.20140305-0ubuntu1 --- debian/changelog | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index 818a735..4a3693a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +indicator-sound (12.10.2+14.04.20140305-0ubuntu1) trusty; urgency=low + + [ Lars Uebernickel ] + * Honor com.canonical.indicator.sound visible (LP: #829648) + + -- Ubuntu daily release Wed, 05 Mar 2014 08:44:14 +0000 + indicator-sound (12.10.2+14.04.20140224-0ubuntu1) trusty; urgency=low [ Sebastien Bacher ] -- cgit v1.2.3 From c02662eef33dba2a01d8dd8cda90efd7cd599c1b Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Tue, 11 Mar 2014 14:28:23 +0100 Subject: Add desktop_lockscreen profile --- data/com.canonical.indicator.sound | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/com.canonical.indicator.sound b/data/com.canonical.indicator.sound index ae5fd5d..fca15be 100644 --- a/data/com.canonical.indicator.sound +++ b/data/com.canonical.indicator.sound @@ -12,6 +12,9 @@ ObjectPath=/com/canonical/indicator/sound/phone [desktop_greeter] ObjectPath=/com/canonical/indicator/sound/desktop_greeter +[desktop_lockscreen] +ObjectPath=/com/canonical/indicator/sound/desktop_greeter + [ubiquity] ObjectPath=/com/canonical/indicator/sound/desktop_greeter -- cgit v1.2.3 From e2fdd75b6e7fd1c8572dd10356272668b99d33dd Mon Sep 17 00:00:00 2001 From: CI bot Date: Tue, 11 Mar 2014 18:26:29 +0000 Subject: Releasing 12.10.2+14.04.20140311.1-0ubuntu1 --- debian/changelog | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index 4a3693a..bc53fe2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +indicator-sound (12.10.2+14.04.20140311.1-0ubuntu1) trusty; urgency=low + + [ Lars Uebernickel ] + * Add desktop_lockscreen profile + + -- Ubuntu daily release Tue, 11 Mar 2014 18:26:29 +0000 + indicator-sound (12.10.2+14.04.20140305-0ubuntu1) trusty; urgency=low [ Lars Uebernickel ] -- cgit v1.2.3 From ee91c5f1f89d771e9187f21bbf490e45f0c93f1e Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Wed, 12 Mar 2014 14:26:10 +0100 Subject: Don't show player sections on the greeter and lock screen --- src/service.vala | 2 +- src/sound-menu.vala | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/service.vala b/src/service.vala index 2b21275..970867f 100644 --- a/src/service.vala +++ b/src/service.vala @@ -38,7 +38,7 @@ public class IndicatorSound.Service: Object { this.actions.add_action (this.create_mic_volume_action ()); this.menus = new HashTable (str_hash, str_equal); - this.menus.insert ("desktop_greeter", new SoundMenu (null, SoundMenu.DisplayFlags.SHOW_MUTE)); + this.menus.insert ("desktop_greeter", new SoundMenu (null, SoundMenu.DisplayFlags.SHOW_MUTE | SoundMenu.DisplayFlags.HIDE_PLAYERS)); this.menus.insert ("desktop", new SoundMenu ("indicator.desktop-settings", SoundMenu.DisplayFlags.SHOW_MUTE)); this.menus.insert ("phone", new SoundMenu ("indicator.phone-settings", SoundMenu.DisplayFlags.HIDE_INACTIVE_PLAYERS)); diff --git a/src/sound-menu.vala b/src/sound-menu.vala index 480e1cf..3fdfc36 100644 --- a/src/sound-menu.vala +++ b/src/sound-menu.vala @@ -22,7 +22,8 @@ class SoundMenu: Object public enum DisplayFlags { NONE = 0, SHOW_MUTE = 1, - HIDE_INACTIVE_PLAYERS = 2 + HIDE_INACTIVE_PLAYERS = 2, + HIDE_PLAYERS = 4 } public SoundMenu (string? settings_action, DisplayFlags flags) { @@ -55,6 +56,7 @@ class SoundMenu: Object this.root = new Menu (); root.append_item (root_item); + this.hide_players = (flags & DisplayFlags.HIDE_PLAYERS) != 0; this.hide_inactive = (flags & DisplayFlags.HIDE_INACTIVE_PLAYERS) != 0; this.notify_handlers = new HashTable (direct_hash, direct_equal); } @@ -119,6 +121,7 @@ class SoundMenu: Object bool mic_volume_shown; bool settings_shown = false; bool hide_inactive; + bool hide_players = false; HashTable notify_handlers; /* returns the position in this.menu of the section that's associated with @player */ @@ -137,6 +140,9 @@ class SoundMenu: Object } void insert_player_section (MediaPlayer player) { + if (this.hide_players) + return; + var section = new Menu (); Icon icon; @@ -166,6 +172,9 @@ class SoundMenu: Object } void remove_player_section (MediaPlayer player) { + if (this.hide_players) + return; + int index = this.find_player_section (player); if (index >= 0) this.menu.remove (index); -- cgit v1.2.3 From b51fa335562a99e80ec30daf89d0715e084d50d0 Mon Sep 17 00:00:00 2001 From: CI bot Date: Thu, 13 Mar 2014 15:33:12 +0000 Subject: Releasing 12.10.2+14.04.20140313-0ubuntu1 --- debian/changelog | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/changelog b/debian/changelog index bc53fe2..16c2828 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +indicator-sound (12.10.2+14.04.20140313-0ubuntu1) trusty; urgency=low + + [ Lars Uebernickel ] + * Don't show player sections on the greeter and lock screen (LP: + #1280378) + + -- Ubuntu daily release Thu, 13 Mar 2014 15:33:11 +0000 + indicator-sound (12.10.2+14.04.20140311.1-0ubuntu1) trusty; urgency=low [ Lars Uebernickel ] -- cgit v1.2.3