summaryrefslogtreecommitdiff
path: root/tests/testiconview.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2007-06-11 15:38:53 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-06-11 15:38:53 +0000
commitb0db18f842220bcfbc678c2b0d6896a1d2e3c4ff (patch)
tree97d25e471e6443b24b522ad930249d3938dcc90d /tests/testiconview.c
parentd090fe423bfe61c50ee90c5b1d2f8cda57547e32 (diff)
downloadgtk+-b0db18f842220bcfbc678c2b0d6896a1d2e3c4ff.tar.gz
make testiconview show brokenness
svn path=/trunk/; revision=18102
Diffstat (limited to 'tests/testiconview.c')
-rw-r--r--tests/testiconview.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/testiconview.c b/tests/testiconview.c
index 76b54981c7..2d9b11c683 100644
--- a/tests/testiconview.c
+++ b/tests/testiconview.c
@@ -34,6 +34,7 @@ fill_model (GtkTreeModel *model)
char *str, *str2;
GtkTreeIter iter;
GtkListStore *store = GTK_LIST_STORE (model);
+ gint32 size;
pixbuf = gdk_pixbuf_new_from_file ("gnome-textfile.png", NULL);
@@ -51,11 +52,15 @@ fill_model (GtkTreeModel *model)
while (i < NUMBER_OF_ITEMS - 1)
{
+ GdkPixbuf *pb;
+ size = g_random_int_range (20, 70);
+ pb = gdk_pixbuf_scale_simple (pixbuf, size, size, GDK_INTERP_NEAREST);
+
str = g_strdup_printf ("Icon %d", i);
str2 = g_strdup_printf ("Icon <b>%d</b>", i);
gtk_list_store_prepend (store, &iter);
gtk_list_store_set (store, &iter,
- 0, pixbuf,
+ 0, pb,
1, str,
2, i,
3, str2,