summaryrefslogtreecommitdiff
path: root/tests/testcombo.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-12-19 05:18:53 +0100
committerBenjamin Otte <otte@redhat.com>2016-12-19 05:36:06 +0100
commit795f38b4cc901972f23eaff9de6c6387a48cf4a3 (patch)
tree2150380c6334f07138bdfb63f10f8cd27856e844 /tests/testcombo.c
parent087cb3f987dd49610f6cb0009a62d7ac1332f0ab (diff)
downloadgtk+-795f38b4cc901972f23eaff9de6c6387a48cf4a3.tar.gz
cellview: Remove code to modify the background
GtkCellView has a gadget, so peopl can do all their shenanigans with CSS. And the original use case (overriding the background so that the cellview's GdkWindow shares the background color of the combobox) is outdated since we have transparent backgrounds.
Diffstat (limited to 'tests/testcombo.c')
-rw-r--r--tests/testcombo.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/testcombo.c b/tests/testcombo.c
index eeff0aba15..2f33493768 100644
--- a/tests/testcombo.c
+++ b/tests/testcombo.c
@@ -1054,7 +1054,6 @@ main (int argc, char **argv)
GtkTreeModel *model;
GtkTreePath *path;
GtkTreeIter iter;
- GdkRGBA color;
GtkCellArea *area;
gchar *text;
gint i;
@@ -1237,11 +1236,6 @@ main (int argc, char **argv)
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (tmp), renderer,
"text", 1,
NULL);
- color.red = 1.0;
- color.blue = 1.0;
- color.green = 0;
- 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);