mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
allow NULL state in g_simple_action_new_stateful
as an undocumented feature
This commit is contained in:
parent
5ff65d8695
commit
695a9a7993
@ -492,7 +492,8 @@ g_simple_action_new_stateful (const gchar *name,
|
||||
"parameter-type", parameter_type,
|
||||
NULL);
|
||||
|
||||
simple->state = g_variant_ref_sink (state);
|
||||
if (state)
|
||||
simple->state = g_variant_ref_sink (state);
|
||||
|
||||
return simple;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user