[gtk+] Make gdk_rgba_to_string() take a const GdkRGBA



commit edec3e12ddba878781a41b5e67e3c47dff03d635
Author: Christian Persch <chpe gnome org>
Date:   Fri Oct 29 21:16:52 2010 -0400

    Make gdk_rgba_to_string() take a const GdkRGBA
    
    https://bugzilla.gnome.org/show_bug.cgi?id=633216

 gdk/gdkrgba.c |    2 +-
 gdk/gdkrgba.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkrgba.c b/gdk/gdkrgba.c
index e26de98..b355631 100644
--- a/gdk/gdkrgba.c
+++ b/gdk/gdkrgba.c
@@ -267,7 +267,7 @@ gdk_rgba_equal (gconstpointer p1,
  * Returns: A newly allocated text string
  **/
 gchar *
-gdk_rgba_to_string (GdkRGBA *rgba)
+gdk_rgba_to_string (const GdkRGBA *rgba)
 {
   gchar red[G_ASCII_DTOSTR_BUF_SIZE];
   gchar green[G_ASCII_DTOSTR_BUF_SIZE];
diff --git a/gdk/gdkrgba.h b/gdk/gdkrgba.h
index 7b50630..9875d10 100644
--- a/gdk/gdkrgba.h
+++ b/gdk/gdkrgba.h
@@ -55,7 +55,7 @@ guint     gdk_rgba_hash  (gconstpointer p);
 gboolean  gdk_rgba_equal (gconstpointer p1,
                           gconstpointer p2);
 
-gchar *   gdk_rgba_to_string (GdkRGBA *rgba);
+gchar *   gdk_rgba_to_string (const GdkRGBA *rgba);
 
 GType     gdk_rgba_get_type (void) G_GNUC_CONST;
 



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