[gnome-software: 59/110] Replace GDK_MOD1_MASK by GDK_ALT_MASK




commit 60f8b1f77997ccd74350eb4e2dde6f0062454db7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Aug 24 20:59:56 2021 -0300

    Replace GDK_MOD1_MASK by GDK_ALT_MASK

 src/gs-shell.c         | 4 ++--
 src/gs-update-dialog.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 7c4f0f750..098d3b5e3 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -978,8 +978,8 @@ window_key_pressed_cb (GtkEventControllerKey *key_controller,
 {
        gboolean is_rtl = gtk_widget_get_direction (shell->button_back) == GTK_TEXT_DIR_RTL;
 
-       if ((!is_rtl && state == GDK_MOD1_MASK && keyval == GDK_KEY_Left) ||
-           (is_rtl && state == GDK_MOD1_MASK && keyval == GDK_KEY_Right) ||
+       if ((!is_rtl && state == GDK_ALT_MASK && keyval == GDK_KEY_Left) ||
+           (is_rtl && state == GDK_ALT_MASK && keyval == GDK_KEY_Right) ||
            keyval == GDK_KEY_Back) {
                /* GTK will only actually activate the one which is visible */
                gtk_widget_activate (shell->button_back);
diff --git a/src/gs-update-dialog.c b/src/gs-update-dialog.c
index 952bcc334..7c7680456 100644
--- a/src/gs-update-dialog.c
+++ b/src/gs-update-dialog.c
@@ -218,8 +218,8 @@ key_pressed_cb (GtkEventControllerKey *key_controller,
 {
        gboolean is_rtl = gtk_widget_get_direction (GTK_WIDGET (dialog)) == GTK_TEXT_DIR_RTL;
 
-       if ((!is_rtl && state == GDK_MOD1_MASK && keyval == GDK_KEY_Left) ||
-           (is_rtl && state == GDK_MOD1_MASK && keyval == GDK_KEY_Right) ||
+       if ((!is_rtl && state == GDK_ALT_MASK && keyval == GDK_KEY_Left) ||
+           (is_rtl && state == GDK_ALT_MASK && keyval == GDK_KEY_Right) ||
            keyval == GDK_KEY_Back) {
                adw_leaflet_navigate (ADW_LEAFLET (dialog->leaflet), ADW_NAVIGATION_DIRECTION_BACK);
                return GDK_EVENT_STOP;


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