mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
actionmuxer: set handler ids initially to zero
These were getting created with possible non-zero values and then inserted into a hashtable where the readers may not know the state of the group. Ensure those values are set to zero until we assign them below.
This commit is contained in:
parent
9536eb654b
commit
547b2891cb
@ -1269,7 +1269,7 @@ gtk_action_muxer_insert (GtkActionMuxer *muxer,
|
||||
if (!muxer->groups)
|
||||
muxer->groups = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, gtk_action_muxer_free_group);
|
||||
|
||||
group = g_slice_new (Group);
|
||||
group = g_slice_new0 (Group);
|
||||
group->muxer = muxer;
|
||||
group->group = g_object_ref (action_group);
|
||||
group->prefix = g_strdup (prefix);
|
||||
|
Loading…
Reference in New Issue
Block a user