diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-06-17 08:32:11 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-06-17 08:50:26 -0400 |
commit | 64af90111e21364b54f7f430a557a912fa887270 (patch) | |
tree | 0005f85162e209cc24f3169f326946bc714e0576 | |
parent | 3254a3feab8a770a4235df47c66ea76fb7b1e58d (diff) | |
download | gtk+-64af90111e21364b54f7f430a557a912fa887270.tar.gz |
window: Propagate accel changes
When the global accels change, tell the
shortcut controller to re-inject them into
the action muxer hierarchy.
-rw-r--r-- | gtk/gtkwindow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index a79e160582..df3d3d7e87 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -54,7 +54,7 @@ #include "gtknativeprivate.h" #include "gtksettings.h" #include "gtkshortcut.h" -#include "gtkshortcutcontroller.h" +#include "gtkshortcutcontrollerprivate.h" #include "gtkshortcutmanager.h" #include "gtkshortcuttrigger.h" #include "gtksnapshot.h" @@ -2376,6 +2376,8 @@ handle_keys_changed (gpointer data) priv->keys_changed_handler = 0; } + if (priv->application_shortcut_controller) + gtk_shortcut_controller_update_accels (GTK_SHORTCUT_CONTROLLER (priv->application_shortcut_controller)); g_signal_emit (window, window_signals[KEYS_CHANGED], 0); return FALSE; |