[gtk+/composite-templates] modelmenu: fix a GCC warning
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/composite-templates] modelmenu: fix a GCC warning
- Date: Fri, 14 Sep 2012 21:16:39 +0000 (UTC)
commit 31bdf59bbd3a10c53d414ed78ea4ee0afe1318a8
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]