summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testcombo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/testcombo.c b/tests/testcombo.c
index 2a9c527b4c..3459feb59f 100644
--- a/tests/testcombo.c
+++ b/tests/testcombo.c
@@ -1092,7 +1092,7 @@ main (int argc, char **argv)
GtkTreeModel *model;
GtkTreePath *path;
GtkTreeIter iter;
- GdkColor color;
+ GdkRGBA color;
GtkCellArea *area;
gtk_init (&argc, &argv);
@@ -1285,10 +1285,11 @@ main (int argc, char **argv)
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (tmp), renderer,
"text", 1,
NULL);
- color.red = 0xffff;
- color.blue = 0xffff;
+ color.red = 1.0;
+ color.blue = 1.0;
color.green = 0;
- gtk_cell_view_set_background_color (GTK_CELL_VIEW (tmp), &color);
+ color.alpha = 1.0;
+ gtk_cell_view_set_background_rgba (GTK_CELL_VIEW (tmp), &color);
displayed_row_changed (GTK_COMBO_BOX (combobox), GTK_CELL_VIEW (tmp));
g_signal_connect (combobox, "changed", G_CALLBACK (displayed_row_changed), tmp);