[gnome-music/gnome-3-10] Enter selection mode on right-click



commit 2c128176e15e9ef05143952f994fabc4ccf7cb65
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Sep 30 11:53:07 2013 +0200

    Enter selection mode on right-click
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705853

 gnomemusic/view.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 8605bf7..42a3941 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -114,6 +114,7 @@ class ViewContainer(Stack):
         box.pack_end(self._loadMore.widget, False, False, 0)
         self._loadMore.widget.connect('clicked', self._populate)
         self.view.connect('item-activated', self._on_item_activated)
+        self.view.connect('selection-mode-request', self._on_selection_mode_request)
         self._cursor = None
         self.header_bar = header_bar
         self.header_bar._select_button.connect(
@@ -276,6 +277,8 @@ class ViewContainer(Stack):
     def _on_item_activated(self, widget, id, path):
         pass
 
+    def _on_selection_mode_request(self, *args):
+        self.header_bar._select_button.clicked()
 
 #Class for the Empty View
 class Empty(Stack):


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