diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-10-26 17:03:20 -0400 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-10-26 17:03:20 -0400 |
commit | a33f50636cea5d6c1972d1772a59cbb4a0c951b5 (patch) | |
tree | f3ee17a5ca213a44035564fdbd4aa8d54c290a19 /src/mpris2-controller.vala | |
parent | 8067376fb719ac5bf577a3e85d080eec765ec465 (diff) | |
download | ayatana-indicator-sound-a33f50636cea5d6c1972d1772a59cbb4a0c951b5.tar.gz ayatana-indicator-sound-a33f50636cea5d6c1972d1772a59cbb4a0c951b5.tar.bz2 ayatana-indicator-sound-a33f50636cea5d6c1972d1772a59cbb4a0c951b5.zip |
initial transport state fixed
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r-- | src/mpris2-controller.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala index f355d28..f440c13 100644 --- a/src/mpris2-controller.vala +++ b/src/mpris2-controller.vala @@ -84,7 +84,7 @@ public class Mpris2Controller : GLib.Object this.properties_interface = (FreeDesktopProperties) connection.get_object("org.freedesktop.Properties.PropertiesChanged", "/org/mpris/MediaPlayer2"); this.properties_interface.PropertiesChanged += property_changed_cb; - + } catch (DBus.Error e) { error("Problems connecting to the session bus - %s", e.message); } @@ -150,8 +150,8 @@ public class Mpris2Controller : GLib.Object } else{ update = determine_play_state(this.player.PlaybackStatus); - } - (this.owner.custom_items[PlayerController.widget_order.TRANSPORT] as TransportMenuitem).change_play_state(update); + } + (this.owner.custom_items[PlayerController.widget_order.TRANSPORT] as TransportMenuitem).change_play_state(update); GLib.HashTable<string, Value?> cleaned_metadata = this.clean_metadata(); this.owner.custom_items[PlayerController.widget_order.METADATA].update(cleaned_metadata, MetadataMenuitem.attributes_format()); |