Commit de3cfa60 authored by Cosimo Cecchi's avatar Cosimo Cecchi

modelmenu: fix a GCC warning

This should not be a const string, since the caller is supposed to free
parent 4e9f4fbc
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment