actionmuxer: avoid duplicate and recursive work
authorChristian Hergert <chergert@redhat.com>
Wed, 8 Dec 2021 08:31:49 +0000 (00:31 -0800)
committerChristian Hergert <chergert@redhat.com>
Wed, 8 Dec 2021 08:32:36 +0000 (00:32 -0800)
commitd1aec0c3f1636d2f6de79390f7ef8b826328f3d1
tree510a89e26410521a7834d18b1839273a84cf7f69
parent348e34f2218d9ddd795734719235786db653ec2d
actionmuxer: avoid duplicate and recursive work

If we've already done the tracking into the parent muxer, there is no need
to do it again. This can save a great deal of recursive work when adding
items to the muxer.

This makes showing the context menu in gnome-text-editor repeatedly fast
even as spelling corrections are changed.

It is likely that this could fix #4422 as well.

Fixes #4519
Fixes https://gitlab.gnome.org/GNOME/gnome-text-editor/-/issues/220
gtk/gtkactionmuxer.c