# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1612495491 0 # Node ID 3c3f0023ae02f394708b4c444c2892f25085f817 # Parent 26a76f94f8d8cf4505bb780f7967898397bc857f GTK4: Fix menu action setup by adding code to install group actions into the menu bar or popover menu when it exists. Delay setup until it is available then use the cached parent saved on the menu during subsequent creation. diff -r 26a76f94f8d8 -r 3c3f0023ae02 gtk4/dw.c --- a/gtk4/dw.c Thu Feb 04 09:33:19 2021 +0000 +++ b/gtk4/dw.c Fri Feb 05 03:24:51 2021 +0000 @@ -2168,7 +2168,37 @@ return tmp; } -static int _dw_menugroup = 0; +static unsigned int _dw_menugroup = 0; + +/* Recurse into a menu setting the action groups on the menuparent widget */ +void _dw_menu_set_group_recursive(HMENUI start, GtkWidget *menuparent) +{ + int z, submenucount = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(start), "_dw_submenucount")); + + for(z=0;z