[PATCH] Resync menu after activating GtkRadioMenuItem
@jiritechet
Submitted by Jiří Techet Link to original bug (#744596)
Description
Created attachment 296943 Proposed patch
At the moment selecting a GtkRadioMenuItem doesn't update the selection in the menu. Of course, OS X doesn't "know" radio items so it cannot update the selection by itself. However, it is possible to detect the radio menu item activation once it reaches the underlying GtkMenu and when it gets activated here, resync the OS X menu so it corresponds to the GtkMenu. See the patch in the attachment.
I think it's better to perform this directly in the library rather than leaving the resync on applications. I ran into this problem when creating OS X port of the Geany editor and in more complex applications it's quite tricky to find all the code paths that need to be updated and osx specific code gets unnecessarily all around the code, see here:
https://github.com/techee/geany/commit/a122953c7b202b6feb59d6ec4f102edf46a16391
Patch 296943, "Proposed patch":
patch.diff
Version: 2.0.x