On 2/22/07, Jerome Le Saux <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I would like to use a list in a scrolling windows in a gtk2 application.
> My items are the following :
> int Item number | string name | string extension | int length
>
> I saw int he API website I can use GtkItem and GtkListStore.
> How can I store each item in a GtkItem and feed my GtkListStore ?

GtkTree and GtkTreeItem are deprecated and you should not use them
anymore in your code. Use the new GtkTreeView widget with a
GtkListStore or GtrTreeStore object instead.

The GTK+ docs have a nice overview of how to use those objects (see
http://developer.gnome.org/doc/API/2.0/gtk/TreeWidget.html), and you
can use the examples in the gtk-demo program for some "live" code. I
don't know about the corresponding C++ API, but it should be fairly
identical (see http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch08.html
for example).

Regards,

Vivien
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to