mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
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:
parent
4e9f4fbc77
commit
de3cfa6034
@ -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", §ion_namespace);
|
||||
|
Loading…
Reference in New Issue
Block a user