diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-24 17:31:22 -0400 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-24 19:53:08 -0400 |
commit | fc71cbe5a6e22c7dea24a028d87ad0e2a050020b (patch) | |
tree | baf11b422ee1640b6e17ac317e27eb2ea49ad59f /tests/testtreepos.c | |
parent | c79a21e1ddda961be43813daa9179505af89adb7 (diff) | |
download | gtk+-fc71cbe5a6e22c7dea24a028d87ad0e2a050020b.tar.gz |
Remove most of the stock API usage from the tests
With the exception of GtkActions and the tests for stock items.
Diffstat (limited to 'tests/testtreepos.c')
-rw-r--r-- | tests/testtreepos.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testtreepos.c b/tests/testtreepos.c index 20db78f7e0..77cf205dd3 100644 --- a/tests/testtreepos.c +++ b/tests/testtreepos.c @@ -114,7 +114,7 @@ int main (int argc, char *argv[]) cell = gtk_cell_renderer_pixbuf_new (); gtk_tree_view_column_pack_start (col, cell, FALSE); - gtk_tree_view_column_add_attribute (col, cell, "stock-id", 2); + gtk_tree_view_column_add_attribute (col, cell, "icon-name", 2); cell = gtk_cell_renderer_toggle_new (); gtk_tree_view_column_pack_start (col, cell, FALSE); @@ -123,9 +123,9 @@ int main (int argc, char *argv[]) gtk_tree_view_append_column (GTK_TREE_VIEW (tv), col); store = gtk_tree_store_new (3, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_STRING); - gtk_tree_store_insert_with_values (store, NULL, NULL, 0, 0, "One row", 1, FALSE, 2, "gtk-open", -1); - gtk_tree_store_insert_with_values (store, &iter, NULL, 1, 0, "Two row", 1, FALSE, 2, "gtk-file", -1); - gtk_tree_store_insert_with_values (store, NULL, &iter, 0, 0, "Three row", 1, FALSE, 2, "gtk-file", -1); + gtk_tree_store_insert_with_values (store, NULL, NULL, 0, 0, "One row", 1, FALSE, 2, "document-open", -1); + gtk_tree_store_insert_with_values (store, &iter, NULL, 1, 0, "Two row", 1, FALSE, 2, "dialog-warning", -1); + gtk_tree_store_insert_with_values (store, NULL, &iter, 0, 0, "Three row", 1, FALSE, 2, "dialog-error", -1); gtk_tree_view_set_model (GTK_TREE_VIEW (tv), GTK_TREE_MODEL (store)); |