[gtk+] Use G_CONST_RETURN for const return values



commit a47c0754d7e1998137c88a58323e128695ce99e4
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jul 15 18:29:13 2009 -0400

    Use G_CONST_RETURN for const return values

 gtk/gtkentrybuffer.c |    2 +-
 gtk/gtkentrybuffer.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkentrybuffer.c b/gtk/gtkentrybuffer.c
index 9a51d5e..c142363 100644
--- a/gtk/gtkentrybuffer.c
+++ b/gtk/gtkentrybuffer.c
@@ -511,7 +511,7 @@ gtk_entry_buffer_get_bytes (GtkEntryBuffer *buffer)
  *
  * Since: 2.18
  **/
-const gchar*
+G_CONST_RETURN gchar*
 gtk_entry_buffer_get_text (GtkEntryBuffer *buffer)
 {
   GtkEntryBufferClass *klass;
diff --git a/gtk/gtkentrybuffer.h b/gtk/gtkentrybuffer.h
index 0cfc0ea..20556cb 100644
--- a/gtk/gtkentrybuffer.h
+++ b/gtk/gtkentrybuffer.h
@@ -99,7 +99,7 @@ gsize                     gtk_entry_buffer_get_bytes              (GtkEntryBuffe
 
 guint                     gtk_entry_buffer_get_length             (GtkEntryBuffer  *buffer);
 
-const gchar*              gtk_entry_buffer_get_text               (GtkEntryBuffer  *buffer);
+G_CONST_RETURN gchar*     gtk_entry_buffer_get_text               (GtkEntryBuffer  *buffer);
 
 void                      gtk_entry_buffer_set_text               (GtkEntryBuffer  *buffer,
                                                                    const gchar     *chars,



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