[gnome-music/wip/mschraal/window-selection-mode: 7/7] headerbar: Do not switch view in selection mode
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/window-selection-mode: 7/7] headerbar: Do not switch view in selection mode
- Date: Wed, 12 Sep 2018 11:54:15 +0000 (UTC)
commit 187bcadbc7bb735f21d44dcf495c09d75ef14754
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Sep 2 13:22:33 2018 +0200
headerbar: Do not switch view in selection mode
In the child view it was possible to switch to the parent view while in
selection-mode with the keybindings.
Add a selection-mode check to the back button handling to prevent this.
gnomemusic/widgets/headerbar.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gnomemusic/widgets/headerbar.py b/gnomemusic/widgets/headerbar.py
index b15cedb2..761d6e52 100644
--- a/gnomemusic/widgets/headerbar.py
+++ b/gnomemusic/widgets/headerbar.py
@@ -202,6 +202,9 @@ class HeaderBar(Gtk.HeaderBar):
@Gtk.Template.Callback()
@log
def _on_back_button_clicked(self, widget=None):
+ if self.props.selection_mode:
+ return
+
window = self.get_toplevel()
visible_child = window.curr_view.props.visible_child
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]