[glib] Revert "g_menu_markup_start_element: tolerate not having a hash table of objects"
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Revert "g_menu_markup_start_element: tolerate not having a hash table of objects"
- Date: Wed, 14 Dec 2011 12:39:24 +0000 (UTC)
commit fedc0cff518067c26bad698798e50069c765d1f3
Author: Simon McVittie <simon mcvittie collabora co uk>
Date: Wed Dec 14 12:39:06 2011 +0000
Revert "g_menu_markup_start_element: tolerate not having a hash table of objects"
This reverts commit bcdb60641196f98482b5e17fcc96a92589deba35,
accidentally pushed before it was reviewed.
gio/gmenumarkup.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gmenumarkup.c b/gio/gmenumarkup.c
index 3d79f0f..bde3989 100644
--- a/gio/gmenumarkup.c
+++ b/gio/gmenumarkup.c
@@ -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_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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]