[gnome-music: 7/9] add to playlist button should be insensitive when there is no selection.



commit a9c37a2937cf9c0e5683bc25bce1d4cbdb4750b0
Author: Sai <suman sai14 gmail com>
Date:   Mon Jul 29 02:05:56 2013 +0530

    add to playlist button should be insensitive when there is no selection.

 gnomemusic/widgets.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index 3d5e2c5..19344f1 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -226,13 +226,13 @@ class AlbumWidget(Gtk.EventBox):
             self.header_bar.set_selection_mode(True)
             self.player.eventBox.set_visible(False)
             self.selection_toolbar.eventbox.set_visible(True)
-            self.selection_toolbar._add_to_playlist_button.sensitive = False
+            self.selection_toolbar._add_to_playlist_button.set_sensitive(False)
         else:
             self.view.set_selection_mode(False)
             self.header_bar.set_selection_mode(False)
             self.header_bar.title = self.album
             self.selection_toolbar.eventbox.set_visible(False)
-            if(self.player.get_playback_status() != 'Stopped'):
+            if(self.player.get_playback_status() != 2):
                 self.player.eventBox.set_visible(True)
 
     def _on_populate_album_songs(self, source, prefs, track):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]