summaryrefslogtreecommitdiff
path: root/tests/testgtk.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2011-12-26 17:12:20 +0100
committerJavier Jardón <jjardon@gnome.org>2011-12-26 17:12:20 +0100
commit465301c64f3a0164f3a787933d8632d23ee6c9f7 (patch)
tree33b21d32b45c25a60c91f51f8c2569de8c263e65 /tests/testgtk.c
parentdeeac44abb695cbe5259b07592a56d2a5dfb0c5f (diff)
downloadgtk+-465301c64f3a0164f3a787933d8632d23ee6c9f7.tar.gz
tests/testgtk: Do not use GdkColor-based api
Diffstat (limited to 'tests/testgtk.c')
-rw-r--r--tests/testgtk.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 78520c4fa6..45f6ce6072 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -430,14 +430,14 @@ pattern_set_bg (GtkWidget *widget,
GdkWindow *child,
gint level)
{
- static const GdkColor colors[] = {
- { 0, 0x4444, 0x4444, 0xffff },
- { 0, 0x8888, 0x8888, 0xffff },
- { 0, 0xaaaa, 0xaaaa, 0xffff }
+ static const GdkRGBA colors[] = {
+ { 0.27, 0.27, 1.0, 1.0 },
+ { 0.53, 0.53, 1.0, 1.0},
+ { 0.67, 0.67, 1.0, 1.0 }
};
gdk_window_set_user_data (child, widget);
- gdk_window_set_background (child, &colors[level]);
+ gdk_window_set_background_rgba (child, &colors[level]);
}
static void