summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-01-23 22:52:16 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-01-23 22:52:16 -0500
commitb0e67f1eedd885739a8e5d8c72eabe33cf6b0323 (patch)
tree13dcc3e2abd6560ae265e4ea4374c11dc230bc95 /tests
parentb3dbdcdf77cc9fca290197b648fbd32c9484cc10 (diff)
downloadgtk+-b0e67f1eedd885739a8e5d8c72eabe33cf6b0323.tar.gz
testcombo fixup
Diffstat (limited to 'tests')
-rw-r--r--tests/testcombo.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/tests/testcombo.c b/tests/testcombo.c
index 042fed4f19..ade1673f80 100644
--- a/tests/testcombo.c
+++ b/tests/testcombo.c
@@ -23,39 +23,6 @@
* oh yes, this test app surely has a lot of ugly code
*/
-/* grid combo demo */
-static GdkPixbuf *
-create_color_pixbuf (const char *color)
-{
- GdkPixbuf *pixbuf;
- GdkRGBA rgba;
-
- int x;
- int num;
- guchar *pixels, *p;
-
- if (!gdk_rgba_parse (&rgba, color))
- return NULL;
-
- pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
- FALSE, 8,
- 16, 16);
-
- p = pixels = gdk_pixbuf_get_pixels (pixbuf);
-
- num = gdk_pixbuf_get_width (pixbuf) *
- gdk_pixbuf_get_height (pixbuf);
-
- for (x = 0; x < num; x++) {
- p[0] = rgba.red * 255;
- p[1] = rgba.green * 255;
- p[2] = rgba.blue * 255;
- p += 3;
- }
-
- return pixbuf;
-}
-
/* blaat */
static GtkTreeModel *
create_tree_blaat (void)
@@ -956,7 +923,7 @@ int
main (int argc, char **argv)
{
GtkWidget *window, *cellview, *mainbox;
- GtkWidget *combobox, *comboboxtext, *comboboxgrid;
+ GtkWidget *combobox, *comboboxtext;
GtkWidget *tmp, *boom;
GtkCellRenderer *renderer;
GtkTreeModel *model;