aboutsummaryrefslogtreecommitdiff
path: root/src/music-player-bridge.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-02-18 17:53:29 +0000
committerConor Curran <conor.curran@canonical.com>2011-02-18 17:53:29 +0000
commitf82480c0cb0a801fa694a178a0021ed8370d07b7 (patch)
tree652e4449dc1654f37c60e6b796599a82d7187fb3 /src/music-player-bridge.vala
parent5d32cec559249cb0e3b0a85ecdc8e0a5dc1ab199 (diff)
parent223ff23be530c865da8a8b90d18ca77c36af6e35 (diff)
downloadayatana-indicator-sound-f82480c0cb0a801fa694a178a0021ed8370d07b7.tar.gz
ayatana-indicator-sound-f82480c0cb0a801fa694a178a0021ed8370d07b7.tar.bz2
ayatana-indicator-sound-f82480c0cb0a801fa694a178a0021ed8370d07b7.zip
voip feature landed
Diffstat (limited to 'src/music-player-bridge.vala')
-rw-r--r--src/music-player-bridge.vala8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala
index c6c9913..b5932fa 100644
--- a/src/music-player-bridge.vala
+++ b/src/music-player-bridge.vala
@@ -23,11 +23,13 @@ using GLib;
public class MusicPlayerBridge : GLib.Object
{
+ const int DEVICE_ITEMS_COUNT = 3;
+
private SettingsManager settings_manager;
private Dbusmenu.Menuitem root_menu;
private HashMap<string, PlayerController> registered_clients;
private Mpris2Watcher watcher;
-
+
public MusicPlayerBridge()
{
}
@@ -79,10 +81,10 @@ public class MusicPlayerBridge : GLib.Object
private int calculate_menu_position()
{
if(this.registered_clients.size == 0){
- return 2;
+ return DEVICE_ITEMS_COUNT;
}
else{
- return (2 + (this.registered_clients.size * PlayerController.WIDGET_QUANTITY));
+ return (DEVICE_ITEMS_COUNT + (this.registered_clients.size * PlayerController.WIDGET_QUANTITY));
}
}