Varying on the fly the size of a GdkPixbuf in a GtkListstore



Hi,

I have a problem in varying on the fly the size of the GdkPixbuf
in a GtkListStore. I tried to set the size with:

g_object_set(G_OBJECT(archive[idx]->renderer), "stock-size",40, NULL);

archive[idx]->renderer is created this way:

column = gtk_tree_view_column_new();
      archive->renderer = gtk_cell_renderer_pixbuf_new();
     gtk_tree_view_column_pack_start(column, archive->renderer, FALSE);
      gtk_tree_view_column_set_attributes(column, archive->renderer,
"pixbuf",0,NULL);

I use gtk_icon_theme_load_icon to load the icons. Now I would like to change
the size of those icons on the fly with g_object_set as above but it
doesn't work
neither I get any error message in the console.

What is the correct way?

Thank you,
--
Colossus
Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]