[gtk+] modelmenu: fix a GCC warning
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] modelmenu: fix a GCC warning
- Date: Tue, 21 Aug 2012 09:18:12 +0000 (UTC)
commit de3cfa6034780cc9e7a0f203dbb7e3a09413da94
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Aug 21 11:15:32 2012 +0200
modelmenu: fix a GCC warning
This should not be a const string, since the caller is supposed to free
it.
gtk/gtkmodelmenu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmodelmenu.c b/gtk/gtkmodelmenu.c
index dccf72a..bb6a711 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]