summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-12-14 15:09:32 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-12-14 15:09:32 +0000
commited45e54cb4b316dae4358ab6bce9cd3d4fbd2605 (patch)
treef89ad93f1ac76a2c93020551f584afe28d5dd68c /tests
parent58d69919f31aa4cc05694e161a25353849573b23 (diff)
downloadgdk-pixbuf-ed45e54cb4b316dae4358ab6bce9cd3d4fbd2605.tar.gz
Don't use gtk_cell_renderer_set_values().
2004-12-14 Matthias Clasen <mclasen@redhat.com> * tests/testcombo.c (main): Don't use gtk_cell_renderer_set_values().
Diffstat (limited to 'tests')
-rw-r--r--tests/testcombo.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/testcombo.c b/tests/testcombo.c
index 232b4372c..528e9ca7e 100644
--- a/tests/testcombo.c
+++ b/tests/testcombo.c
@@ -916,25 +916,13 @@ main (int argc, char **argv)
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (cellview),
renderer,
FALSE);
- g_value_init (&value, GDK_TYPE_PIXBUF);
- g_value_set_instance (&value, pixbuf);
- gtk_cell_view_set_values (GTK_CELL_VIEW (cellview),
- renderer,
- "pixbuf", &value,
- NULL);
- g_value_unset (&value);
+ g_object_set (renderer, "pixbuf", pixbuf, NULL);
renderer = gtk_cell_renderer_text_new ();
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (cellview),
renderer,
TRUE);
- g_value_init (&value, G_TYPE_STRING);
- g_value_set_string (&value, "la la la");
- gtk_cell_view_set_values (GTK_CELL_VIEW (cellview),
- renderer,
- "text", &value,
- NULL);
- g_value_unset (&value);
+ g_object_set (renderer, "text", "la la la", NULL);
gtk_container_add (GTK_CONTAINER (boom), cellview);
/* GtkComboBox list */