diff options
author | Javier Jardón <jjardon@gnome.org> | 2011-12-19 14:09:36 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2011-12-20 18:32:15 +0000 |
commit | 325142fba782ffe7d165cc105c7ad0099cf29958 (patch) | |
tree | 8236aa9317342327fcff25c676de5d539a2f1089 /tests | |
parent | f84c124e53c0136becfc06b8df0251c70e3a5aa1 (diff) | |
download | gtk+-325142fba782ffe7d165cc105c7ad0099cf29958.tar.gz |
tests/testcombo.c: Use GdkRGBA instead GdkColor
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testcombo.c | 9 |
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); |