[gthumb] ignore internal shortcuts in gth_window_activate_shortcut



commit 08ede3b0f96bfa0855927ac8c7bae606e2f8a098
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Nov 13 16:55:44 2019 +0100

    ignore internal shortcuts in gth_window_activate_shortcut
    
    They are activated elsewhere.

 gthumb/gth-window.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gthumb/gth-window.c b/gthumb/gth-window.c
index fb202b1e..f1ed40ef 100644
--- a/gthumb/gth-window.c
+++ b/gthumb/gth-window.c
@@ -857,6 +857,9 @@ gth_window_activate_shortcut (GthWindow       *window,
        if (shortcut != NULL) {
                GAction *action;
 
+               if ((shortcut->context & GTH_SHORTCUT_CONTEXT_INTERNAL) != 0)
+                       return FALSE;
+
                action = g_action_map_lookup_action (G_ACTION_MAP (window), shortcut->action_name);
                if (action != NULL) {
                        GVariant *variant;


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