[libdazzle] shortcuts: don't translate shortcut phase
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] shortcuts: don't translate shortcut phase
- Date: Sun, 5 May 2019 20:38:55 +0000 (UTC)
commit ace7dc4050d8db63352cc54a5f29956d3054fd2a
Author: Christian Hergert <chergert redhat com>
Date: Sun May 5 13:36:13 2019 -0700
shortcuts: don't translate shortcut phase
This is causing us to mistakingly activate some commands when
they have no place being activated as global.
src/shortcuts/dzl-shortcut-theme.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/src/shortcuts/dzl-shortcut-theme.c b/src/shortcuts/dzl-shortcut-theme.c
index 74d2d8f..0e07c47 100644
--- a/src/shortcuts/dzl-shortcut-theme.c
+++ b/src/shortcuts/dzl-shortcut-theme.c
@@ -498,9 +498,6 @@ dzl_shortcut_theme_set_chord_for_action (DzlShortcutTheme *self,
dzl_shortcut_chord_table_add (priv->actions_table, chord,
(gpointer)detailed_action_name);
- if (phase == DZL_SHORTCUT_PHASE_DISPATCH)
- phase = DZL_SHORTCUT_PHASE_BUBBLE | DZL_SHORTCUT_PHASE_GLOBAL;
-
if (!g_hash_table_contains (priv->chains, detailed_action_name))
{
DzlShortcutClosureChain *chain;
@@ -590,9 +587,6 @@ dzl_shortcut_theme_set_chord_for_command (DzlShortcutTheme *self,
if (chord != NULL)
dzl_shortcut_chord_table_add (priv->commands_table, chord, (gpointer)command);
- if (phase == DZL_SHORTCUT_PHASE_DISPATCH)
- phase = DZL_SHORTCUT_PHASE_BUBBLE | DZL_SHORTCUT_PHASE_GLOBAL;
-
if (!g_hash_table_contains (priv->chains, command))
{
DzlShortcutClosureChain *chain;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]