modelmenu: fix a GCC warning

This should not be a const string, since the caller is supposed to free
it.
This commit is contained in:
Cosimo Cecchi 2012-08-21 11:15:32 +02:00
parent 4e9f4fbc77
commit de3cfa6034

View File

@ -84,7 +84,7 @@ gtk_model_menu_binding_append_item (GtkModelMenuBinding *binding,
if ((section = g_menu_model_get_item_link (model, item_index, "section")))
{
const gchar *section_namespace = NULL;
gchar *section_namespace = NULL;
g_menu_model_get_item_attribute (model, item_index, "label", "s", heading);
g_menu_model_get_item_attribute (model, item_index, "action-namespace", "s", &section_namespace);