diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-11-25 12:49:16 -0500 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-04 15:39:46 +0100 |
commit | 757837b611e4dfb746892ef102ec63062fffcb21 (patch) | |
tree | da0e172bad51458c227d4deec5225c99e0be8ca9 /tests/testgrid.c | |
parent | 9b1118a35db12cafa0f9587f8748eac232a624e0 (diff) | |
download | gtk+-757837b611e4dfb746892ef102ec63062fffcb21.tar.gz |
Make tests compile without using GtkStyle api
Diffstat (limited to 'tests/testgrid.c')
-rw-r--r-- | tests/testgrid.c | 6 |
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; |