On Thu, Aug 03, 2006 at 09:15:56PM +0200, rupert wrote:
>
> One thing beside this that bothers me is that i now kicked the idea of
> having buttons in the table, now I use a list and have only one pair of
> buttons for all of them.
> I got the Images changing whit a timeout in the old version, but in my
> Treeview
> i have to use pixbuf and I havent been able to change the pixbuf with my
> timeout,
If I read it correctly you are trying to change "pixbuf"
property of a GdkPixbuf. This doesn't make sense -- don't
you get run-time warnings to console?
Change the pixbuf in the model:
pixbuf = gdk_pixbuf_new_from_file(...);
gtk_tree_store_set(treestore, &iter, column_id, pixbuf, -1);
g_object_unref(pixbuf);
and that's all. However, if you use some images repeatedly,
register them as stock icons or load the pixbufs only once
and reuse them.
Yeti
--
Anonyms eat their boogers.
_______________________________________________
gtk-app-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list