TreeViews, IconViews, and images


I've been looking over the C API docs and the Perl examples, but I can't
seem to figure out how one is supposed to set up a TreeStore (or a
ListStore) so that it would be possible to show an image in a TreeView
or an IconView. Could someone point me towards a simple example? I did
figure out that it must involve a CellRendererPixbuf somehow, but I
haven't been able to figure out how the pieces fit together. The rest of
the treeview works somewhat (I got that far, though not by understaning
everything), but this is really puzzling me

Also, while I'm at it, I would like to set up a TreeView so that
optionally, the user can choose to not display the 'leaf' items in a
TreeStore; those would be shown in the IconView that is going to be
right next to the TreeView, with the icons in the iconview being
changed when the selection on the TreeView changes. Is that possible
without building two TreeStore objects? If so, how?

Wouter Verhelst
Louizastraat 14, 2800 Mechelen
T: +32 15 27 69 50 / F: +32 15 27 69 51 / M: +32 486 836 198

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