mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-07 09:10:11 +00:00
GtkWidget: fix insert_action_group(NULL)
gtk_widget_insert_action_group (widget, "foo", NULL) is valid, but g_action_muxer_insert (muxer, "foo", NULL) is not. Use g_action_muxer_remove() for that case.
This commit is contained in:
parent
820b0cafe0
commit
828a97d773
@ -14138,5 +14138,8 @@ gtk_widget_insert_action_group (GtkWidget *widget,
|
||||
|
||||
muxer = _gtk_widget_get_action_muxer (widget);
|
||||
|
||||
g_action_muxer_insert (muxer, name, group);
|
||||
if (group)
|
||||
g_action_muxer_insert (muxer, name, group);
|
||||
else
|
||||
g_action_muxer_remove (muxer, name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user