Re: list with images and text



Hi,

Is there any widget that can display a list whose items are composed of an image and a label?
GtkListStore is what you're looking for. It's derived from GtkTreeModel 
and you have to view it with a GtkTreeView widget.
Like this:

*--------------------*
|       image1     |   piece of text 1
*--------------------*

*--------------------*
|       image2     |   piece of text 2
*--------------------*
Look at the demo program that comes with Gtk source distribution. One 
part of that demo is the "Stock Item and Icons Browser", which does 
exactly what you're looking for I think. Hope this helps.
Alif.




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