[gnome-music] view: Enable selection mode on right-click when viewing an album



commit 3eb1df9d9737986b323d68c5c985dcca30e9e4d4
Author: Arnel Borja <arnelborja src gnome org>
Date:   Fri May 9 00:21:54 2014 +0800

    view: Enable selection mode on right-click when viewing an album
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728407

 gnomemusic/view.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 5aead15..cffce42 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -347,6 +347,7 @@ class Albums(ViewContainer):
     def __init__(self, window, player):
         ViewContainer.__init__(self, 'albums', _("Albums"), window, Gd.MainViewType.ICON)
         self._albumWidget = Widgets.AlbumWidget(player)
+        self._albumWidget.view.connect('selection-mode-request', self._on_selection_mode_request)
         self.player = player
         self.add(self._albumWidget)
         self.albums_selected = []
@@ -1177,6 +1178,7 @@ class Search(ViewContainer):
 
         self.albums_selected = []
         self._albumWidget = Widgets.AlbumWidget(player)
+        self._albumWidget.view.connect('selection-mode-request', self._on_selection_mode_request)
         self.add(self._albumWidget)
 
         self.artists_albums_selected = []


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