summaryrefslogtreecommitdiff
path: root/tests/testgrid.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-11-25 12:49:16 -0500
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:46 +0100
commit757837b611e4dfb746892ef102ec63062fffcb21 (patch)
treeda0e172bad51458c227d4deec5225c99e0be8ca9 /tests/testgrid.c
parent9b1118a35db12cafa0f9587f8748eac232a624e0 (diff)
downloadgtk+-757837b611e4dfb746892ef102ec63062fffcb21.tar.gz
Make tests compile without using GtkStyle api
Diffstat (limited to 'tests/testgrid.c')
-rw-r--r--tests/testgrid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testgrid.c b/tests/testgrid.c
index d576848e98..9c1b38a9be 100644
--- a/tests/testgrid.c
+++ b/tests/testgrid.c
@@ -5,13 +5,13 @@ oriented_test_widget (const gchar *label, const gchar *color, gdouble angle)
{
GtkWidget *box;
GtkWidget *widget;
- GdkColor c;
+ GdkRGBA c;
widget = gtk_label_new (label);
gtk_label_set_angle (GTK_LABEL (widget), angle);
box = gtk_event_box_new ();
- gdk_color_parse (color, &c);
- gtk_widget_modify_bg (box, GTK_STATE_NORMAL, &c);
+ gdk_rgba_parse (color, &c);
+ gtk_widget_override_background_color (box, 0, &c);
gtk_container_add (GTK_CONTAINER (box), widget);
return box;