summaryrefslogtreecommitdiff
path: root/gtk/gtkactionmuxer.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-06-17 08:35:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-06-17 08:50:26 -0400
commit15c65595b8e190f06518a3de385f7130273a58c5 (patch)
tree38bcb96eeb7da66e1020aee9ccfd9a21449c9b4b /gtk/gtkactionmuxer.c
parent424dd8a46392d87de36abb78d8b261c54193758a (diff)
downloadgtk+-15c65595b8e190f06518a3de385f7130273a58c5.tar.gz
action muxer: Propagate accel changes
When we set a new parent on an action muxer, accels may change, so call primary_accel_changed for involved actions.
Diffstat (limited to 'gtk/gtkactionmuxer.c')
-rw-r--r--gtk/gtkactionmuxer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/gtkactionmuxer.c b/gtk/gtkactionmuxer.c
index d57e315daf..9eac44b72e 100644
--- a/gtk/gtkactionmuxer.c
+++ b/gtk/gtkactionmuxer.c
@@ -443,10 +443,9 @@ notify_observers_added (GtkActionMuxer *muxer,
if (!action->watchers)
continue;
- if (action_muxer_query_action (muxer, action_name,
- NULL, NULL, NULL, NULL, NULL,
- FALSE))
- continue;
+ for (node = action ? action->watchers : NULL; node; node = node->next)
+ gtk_action_observer_primary_accel_changed (node->data, GTK_ACTION_OBSERVABLE (muxer),
+ action_name, NULL);
gtk_action_observable_register_observer (GTK_ACTION_OBSERVABLE (parent), action_name, GTK_ACTION_OBSERVER (muxer));