[gdl] Use "const" instead G_CONST_RETURN



commit 8beebdcb646ca8c3165d36e638d2bbc610fe2a1e
Author: Javier Jardón <jjardon gnome org>
Date:   Thu Jun 9 17:26:14 2011 +0100

    Use "const" instead G_CONST_RETURN
    
    The macro will be deprecated soon. See
    https://bugzilla.gnome.org/show_bug.cgi?id=644611

 gdl/gdl-dock-object.c |    2 +-
 gdl/gdl-dock-object.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdl/gdl-dock-object.c b/gdl/gdl-dock-object.c
index 53bd3ee..60d6fa9 100644
--- a/gdl/gdl-dock-object.c
+++ b/gdl/gdl-dock-object.c
@@ -890,7 +890,7 @@ gdl_dock_object_register_init (void)
     g_relation_insert (dock_register, "placeholder", (gpointer) GDL_TYPE_DOCK_PLACEHOLDER);
 }
 
-G_CONST_RETURN gchar *
+const gchar *
 gdl_dock_object_nick_from_type (GType type)
 {
     GTuples *tuples;
diff --git a/gdl/gdl-dock-object.h b/gdl/gdl-dock-object.h
index 9721b74..bc61f07 100644
--- a/gdl/gdl-dock-object.h
+++ b/gdl/gdl-dock-object.h
@@ -195,7 +195,7 @@ gboolean       gdl_dock_object_child_placement   (GdlDockObject    *object,
 GType gdl_dock_param_get_type (void);
 
 /* functions for setting/retrieving nick names for serializing GdlDockObject types */
-G_CONST_RETURN gchar *gdl_dock_object_nick_from_type    (GType        type);
+const gchar          *gdl_dock_object_nick_from_type    (GType        type);
 GType                 gdl_dock_object_type_from_nick    (const gchar *nick);
 GType                 gdl_dock_object_set_type_for_nick (const gchar *nick,
                                                          GType        type);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]