[gnome-music/gnome-3-10] Enter selection mode on right-click
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/gnome-3-10] Enter selection mode on right-click
- Date: Mon, 30 Sep 2013 09:57:51 +0000 (UTC)
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]