[goffice] go-color: constify.



commit 4b36d42d93113c48df5c5f5f5ade1726d9f2f6ce
Author: Morten Welinder <terra gnome org>
Date:   Mon May 21 15:17:01 2012 -0400

    go-color: constify.

 goffice/utils/go-color.c |    2 +-
 goffice/utils/go-color.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/goffice/utils/go-color.c b/goffice/utils/go-color.c
index 39551a5..14a52fc 100644
--- a/goffice/utils/go-color.c
+++ b/goffice/utils/go-color.c
@@ -95,7 +95,7 @@ go_color_to_gdk_rgba (GOColor color, GdkRGBA *res)
 }
 
 GOColor
-go_color_from_gdk_rgba (GdkRGBA *rgbacolor, GOColor *res)
+go_color_from_gdk_rgba (GdkRGBA const *rgbacolor, GOColor *res)
 {
 	GOColor color;
 	gint r, g, b, a;
diff --git a/goffice/utils/go-color.h b/goffice/utils/go-color.h
index 9d6771f..2b253c9 100644
--- a/goffice/utils/go-color.h
+++ b/goffice/utils/go-color.h
@@ -85,7 +85,7 @@ gchar    *go_color_as_str   (GOColor color);
 PangoAttribute *go_color_to_pango (GOColor color, gboolean is_fore);
 #ifdef GOFFICE_WITH_GTK
 GdkRGBA *go_color_to_gdk_rgba  (GOColor color, GdkRGBA *res);
-GOColor go_color_from_gdk_rgba (GdkRGBA *rgbacolor, GOColor *res);
+GOColor go_color_from_gdk_rgba (GdkRGBA const *rgbacolor, GOColor *res);
 #endif
 
 G_END_DECLS



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