[gnome-music/wip/jfelder/gtk4-v3: 26/259] window: Update MOD1_MASK to ALT_MASK
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/gtk4-v3: 26/259] window: Update MOD1_MASK to ALT_MASK
- Date: Thu, 17 Feb 2022 08:41:14 +0000 (UTC)
commit d700794b738246af63781ba2da85bae4aa2bd46d
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Apr 11 23:39:48 2021 +0200
window: Update MOD1_MASK to ALT_MASK
gnomemusic/window.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 23779b3c3..9ec551cb9 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -289,7 +289,7 @@ class Window(Adw.ApplicationWindow):
modifiers = state & Gtk.accelerator_get_default_mod_mask()
control_mask = Gdk.ModifierType.CONTROL_MASK
shift_mask = Gdk.ModifierType.SHIFT_MASK
- mod1_mask = Gdk.ModifierType.MOD1_MASK
+ alt_mask = Gdk.ModifierType.ALT_MASK
shift_ctrl_mask = control_mask | shift_mask
# Ctrl+<KEY>
@@ -329,7 +329,7 @@ class Window(Adw.ApplicationWindow):
if keyval == Gdk.KEY_A:
self._deselect_all()
# Alt+<KEY>
- elif modifiers == mod1_mask:
+ elif modifiers == alt_mask:
# Go back from child view on Alt + Left
if keyval == Gdk.KEY_Left:
self._switch_back_from_childview()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]