From 4cfd1f51c0bbe33c2b31e7f097064d8fe88c48a1 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 17 Dec 2012 16:42:07 +0100 Subject: [PATCH] gdk: API: constify argument gdk_window_set_background_rgba() should take a const RGBA. --- gdk/gdkwindow.c | 4 ++-- gdk/gdkwindow.h | 4 ++-- 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);