diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-08-21 11:15:32 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-08-21 11:15:32 +0200 |
commit | de3cfa6034780cc9e7a0f203dbb7e3a09413da94 (patch) | |
tree | 68cbb7dbc49d2430ecd83b2258072f08e29f46b0 /gtk | |
parent | 4e9f4fbc773f01170529e973aceefaf434b127db (diff) | |
download | gtk+-de3cfa6034780cc9e7a0f203dbb7e3a09413da94.tar.gz |
modelmenu: fix a GCC warning
This should not be a const string, since the caller is supposed to free
it.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkmodelmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkmodelmenu.c b/gtk/gtkmodelmenu.c index dccf72a238..bb6a711026 100644 --- a/gtk/gtkmodelmenu.c +++ b/gtk/gtkmodelmenu.c @@ -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); |