mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 17:08:53 +02:00
Revert "g_menu_markup_start_element: tolerate not having a hash table of objects"
This reverts commit bcdb606411
,
accidentally pushed before it was reviewed.
This commit is contained in:
@@ -244,7 +244,7 @@ g_menu_markup_start_element (GMarkupParseContext *context,
|
|||||||
g_menu_item_set_link (state->frame.item, name, G_MENU_MODEL (menu));
|
g_menu_item_set_link (state->frame.item, name, G_MENU_MODEL (menu));
|
||||||
g_menu_markup_push_frame (state, menu, NULL);
|
g_menu_markup_push_frame (state, menu, NULL);
|
||||||
|
|
||||||
if (id != NULL && state->objects != NULL)
|
if (id != NULL)
|
||||||
g_hash_table_insert (state->objects, g_strdup (id), g_object_ref (menu));
|
g_hash_table_insert (state->objects, g_strdup (id), g_object_ref (menu));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user