Skip to content

Commit

Permalink
make testiconview show brokenness
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=18102
  • Loading branch information
Matthias Clasen committed Jun 11, 2007
1 parent d090fe4 commit b0db18f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2007-06-11 Matthias Clasen <[email protected]>

* tests/testiconview.c: Use icons of varying size.

2007-06-10 Matthias Clasen <[email protected]>

* gtk/gtkrc.c (gtk_rc_parse_style): Accept class names starting
Expand Down
7 changes: 6 additions & 1 deletion tests/testiconview.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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,
Expand Down

0 comments on commit b0db18f

Please sign in to comment.