[gtk+] gdk: Constify argument to gdk_rgba_copy()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Constify argument to gdk_rgba_copy()
- Date: Mon, 6 Dec 2010 00:31:33 +0000 (UTC)
commit e4c9d1a3214052edffe9cf5376ecc76e958758f4
Author: Benjamin Otte <otte redhat com>
Date: Sun Dec 5 14:54:43 2010 +0100
gdk: Constify argument to gdk_rgba_copy()
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 c2cf2fc..686d89b 100644
--- a/gdk/gdkrgba.c
+++ b/gdk/gdkrgba.c
@@ -49,7 +49,7 @@ G_DEFINE_BOXED_TYPE (GdkRGBA, gdk_rgba,
* Since: 3.0
**/
GdkRGBA *
-gdk_rgba_copy (GdkRGBA *rgba)
+gdk_rgba_copy (const GdkRGBA *rgba)
{
GdkRGBA *copy;
diff --git a/gdk/gdkrgba.h b/gdk/gdkrgba.h
index 2b76704..d0d1286 100644
--- a/gdk/gdkrgba.h
+++ b/gdk/gdkrgba.h
@@ -45,7 +45,7 @@ struct _GdkRGBA
#define GDK_TYPE_RGBA (gdk_rgba_get_type ())
-GdkRGBA * gdk_rgba_copy (GdkRGBA *rgba);
+GdkRGBA * gdk_rgba_copy (const GdkRGBA *rgba);
void gdk_rgba_free (GdkRGBA *rgba);
gboolean gdk_rgba_parse (GdkRGBA *rgba,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]