summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-12-17 16:42:07 +0100
committerBenjamin Otte <otte@redhat.com>2012-12-17 17:21:07 +0100
commit4cfd1f51c0bbe33c2b31e7f097064d8fe88c48a1 (patch)
tree4bd0c921b5878bc2142f73f14a6b5f994046883a /gdk
parentf770e9ac1ec22409d2d178452a3024433a24aa1f (diff)
downloadgtk+-4cfd1f51c0bbe33c2b31e7f097064d8fe88c48a1.tar.gz
gdk: API: constify argument
gdk_window_set_background_rgba() should take a const RGBA.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkwindow.c4
-rw-r--r--gdk/gdkwindow.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 7dcd1d97e3..065dfcd9fc 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -6549,8 +6549,8 @@ gdk_window_set_background (GdkWindow *window,
* See also gdk_window_set_background_pattern().
**/
void
-gdk_window_set_background_rgba (GdkWindow *window,
- GdkRGBA *rgba)
+gdk_window_set_background_rgba (GdkWindow *window,
+ const GdkRGBA *rgba)
{
cairo_pattern_t *pattern;
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index fded029d00..10239132ba 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -659,8 +659,8 @@ void gdk_window_set_transient_for (GdkWindow *window,
GDK_DEPRECATED_IN_3_4_FOR(gdk_window_set_background_rgba)
void gdk_window_set_background (GdkWindow *window,
const GdkColor *color);
-void gdk_window_set_background_rgba (GdkWindow *window,
- GdkRGBA *rgba);
+void gdk_window_set_background_rgba (GdkWindow *window,
+ const GdkRGBA *rgba);
void gdk_window_set_background_pattern (GdkWindow *window,
cairo_pattern_t *pattern);
cairo_pattern_t *gdk_window_get_background_pattern (GdkWindow *window);