Re: GtkTreeView PixBuf cell to display 2 images



Van H Tran wrote:
Hi!

I want to implement some kind of FOLDER browser window
using GtkTreeView. This tree has 2 columns, first
column for some icon, and the second for the folder
name

I have 4 icons

1. icon of a Folder open
2. icon of a Folder closed
3. icon of a small + sign
4. icon of a small - sign

If icon 1 is placed on top of the icon 4 in one cell,
it would look perfect as in icon 4, the - sign is
located right at the bottom left, whereas in icon 1,
the Folder icon is located little to the right of the
pic.

Similarly for icon 2 and 3.
Now, due to the limitation that these icons cannot be
edited to be combined, I now need a way to display two
icons, one on top of the other, in one cell.

Is it possible to do this?

Thanks in advance,
TV Hoang,
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



You can use gdk_pixbuf_composite function.



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