diff options
author | Conor Curran <conor.curran@canonical.com> | 2012-03-16 17:30:21 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2012-03-16 17:30:21 +0000 |
commit | f0bcb96d0f2a62ba7497b387ca1cf290b39aea33 (patch) | |
tree | 3fa876fad4fd1cb43b6836f0e7c1cdfe05d66cdc | |
parent | 324a229148cc6c7daedbfebccc01250615604ce7 (diff) | |
download | ayatana-indicator-sound-f0bcb96d0f2a62ba7497b387ca1cf290b39aea33.tar.gz ayatana-indicator-sound-f0bcb96d0f2a62ba7497b387ca1cf290b39aea33.tar.bz2 ayatana-indicator-sound-f0bcb96d0f2a62ba7497b387ca1cf290b39aea33.zip |
set the player name on the transport item so as hud can identify the default player
-rw-r--r-- | src/metadata-menu-item.vala | 2 | ||||
-rw-r--r-- | src/player-controller.vala | 2 | ||||
-rw-r--r-- | src/transport-menu-item.vala | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/metadata-menu-item.vala b/src/metadata-menu-item.vala index 897a502..b2dd752 100644 --- a/src/metadata-menu-item.vala +++ b/src/metadata-menu-item.vala @@ -39,7 +39,7 @@ public class MetadataMenuitem : PlayerItem MetadataMenuitem.clean_album_art_temp_dir(); this.previous_temp_album_art_path = null; this.album_art_cache_dir = MetadataMenuitem.create_album_art_temp_dir(); - debug ("JUST ABOUT TO ATTEMPT PLAYER NAME SETTING %s", this.owner.app_info.get_name()); + //debug ("JUST ABOUT TO ATTEMPT PLAYER NAME SETTING %s", this.owner.app_info.get_name()); this.property_set (MENUITEM_PLAYER_NAME, this.owner.app_info.get_name()); this.property_set (MENUITEM_PLAYER_ICON, this.owner.icon_name); this.property_set_bool (MENUITEM_PLAYER_RUNNING, false); diff --git a/src/player-controller.vala b/src/player-controller.vala index 8d3e6cc..80a48c3 100644 --- a/src/player-controller.vala +++ b/src/player-controller.vala @@ -174,7 +174,7 @@ public class PlayerController : GLib.Object if(this.current_state != state.CONNECTED){ metadata_menuitem.should_collapse (true); playlists_menuitem.root_item.property_set_bool (MENUITEM_PROP_VISIBLE, - false ); + false); this.custom_items[widget_order.TRANSPORT].property_set_bool (MENUITEM_PROP_VISIBLE, this.app_info.get_id() == "rhythmbox.desktop"); return; diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala index ec41dd7..4ec7dad 100644 --- a/src/transport-menu-item.vala +++ b/src/transport-menu-item.vala @@ -38,6 +38,7 @@ public class TransportMenuitem : PlayerItem } construct{ this.property_set_int(MENUITEM_PLAY_STATE, (int)Transport.State.PAUSED); + this.property_set (MENUITEM_PROP_LABEL, this.owner.app_info.get_name()); this.cached_action = Transport.Action.NO_ACTION; } |