[gnome-music] view: Make albums list insensitive in Artists view in selection mode



commit 7c16f43161e9d4f406db56256befffbe284ec111
Author: Arnel Borja <arnelborja src gnome org>
Date:   Fri May 9 00:27:47 2014 +0800

    view: Make albums list insensitive in Artists view in selection mode
    
    Only the sidebar should be sensitive in Artists view if selection mode
    is on to be consistent with the Playlists view.
    
    This prevents any song to be played and have both the selection bar and
    player bar to be shown at the same time while in selection mode.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729521

 gnomemusic/view.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index cffce42..cc8e8ea 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -735,6 +735,10 @@ class Artists (ViewContainer):
                     self._last_selection)
 
     @log
+    def _on_selection_mode_changed(self, widget, data=None):
+        self.artistAlbumsStack.set_sensitive(not self.header_bar._selectionMode)
+
+    @log
     def get_selected_track_uris(self, callback):
         self.items_selected = []
         self.items_selected_callback = callback


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