]> Pileus Git - ~andy/gtk/commitdiff
modelmenu: fix a GCC warning
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 21 Aug 2012 09:15:32 +0000 (11:15 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 21 Aug 2012 09:15:32 +0000 (11:15 +0200)
This should not be a const string, since the caller is supposed to free
it.

gtk/gtkmodelmenu.c

index dccf72a2382e12ed64550cf63b70d1c03edec4a3..bb6a711026eddfebb5047e5b41ee222b6808505b 100644 (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);