~cjcurran/indicator-sound/expose-transport-continually

« back to all changes in this revision

Viewing changes to src/player-controller.vala

  • Committer: Conor Curran
  • Date: 2011-03-14 13:04:21 UTC
  • Revision ID: conor.curran@canonical.com-20110314130421-b4w7r4d9tmhavho3
expose transport when closed and cache intended action

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
    PlaylistsMenuitem playlists_menuitem = this.custom_items[widget_order.PLAYLISTS] as PlaylistsMenuitem;
146
146
 
147
147
    if(this.current_state != state.CONNECTED){
148
 
      this.custom_items[widget_order.TRANSPORT].property_set_bool(MENUITEM_PROP_VISIBLE,
149
 
                                                                  false);
150
148
      this.custom_items[widget_order.METADATA].property_set_bool(MENUITEM_PROP_VISIBLE,
151
149
                                                                 false);
152
150
      playlists_menuitem.root_item.property_set_bool ( MENUITEM_PROP_VISIBLE,
155
153
    }
156
154
    this.custom_items[widget_order.METADATA].property_set_bool(MENUITEM_PROP_VISIBLE,
157
155
                                                              this.custom_items[widget_order.METADATA].populated(MetadataMenuitem.attributes_format()));    
158
 
    this.custom_items[widget_order.TRANSPORT].property_set_bool(MENUITEM_PROP_VISIBLE,
159
 
                                                                true);
 
156
    TransportMenuitem transport = this.custom_items[widget_order.TRANSPORT] as TransportMenuitem;
 
157
    transport.handle_cached_action();
 
158
 
160
159
    playlists_menuitem.root_item.property_set_bool ( MENUITEM_PROP_VISIBLE,
161
160
                                                     this.use_playlists );
162
161
  }