summaryrefslogtreecommitdiff
path: root/tests/testadjustsize.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-11-25 12:50:17 -0500
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:46 +0100
commite374f7e4b544a963dfd3ee795870517ad3e45412 (patch)
tree5c29fb8ca6f20204e68346b4554203c2bbb15102 /tests/testadjustsize.c
parent757837b611e4dfb746892ef102ec63062fffcb21 (diff)
downloadgtk+-e374f7e4b544a963dfd3ee795870517ad3e45412.tar.gz
Forgotten files
Diffstat (limited to 'tests/testadjustsize.c')
-rw-r--r--tests/testadjustsize.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/testadjustsize.c b/tests/testadjustsize.c
index f82b966266..c45522ad33 100644
--- a/tests/testadjustsize.c
+++ b/tests/testadjustsize.c
@@ -236,23 +236,23 @@ create_widget_visible_border (const char *text)
GtkWidget *inner_box;
GtkWidget *test_widget;
GtkWidget *label;
- GdkColor color;
+ GdkRGBA color;
outer_box = gtk_event_box_new ();
- gdk_color_parse ("black", &color);
- gtk_widget_modify_bg (outer_box, GTK_STATE_NORMAL, &color);
+ gdk_rgba_parse (&color, "black");
+ gtk_widget_override_background_color (outer_box, 0, &color);
inner_box = gtk_event_box_new ();
gtk_container_set_border_width (GTK_CONTAINER (inner_box), 5);
- gdk_color_parse ("blue", &color);
- gtk_widget_modify_bg (inner_box, GTK_STATE_NORMAL, &color);
+ gdk_rgba_parse (&color, "blue");
+ gtk_widget_override_background_color (inner_box, 0, &color);
gtk_container_add (GTK_CONTAINER (outer_box), inner_box);
test_widget = gtk_event_box_new ();
- gdk_color_parse ("red", &color);
- gtk_widget_modify_bg (test_widget, GTK_STATE_NORMAL, &color);
+ gdk_rgba_parse (&color, "red");
+ gtk_widget_override_background_color (test_widget, 0, &color);
gtk_container_add (GTK_CONTAINER (inner_box), test_widget);