Re: manage a list
- From: "Vivien Malerba" <vmalerba gmail com>
- To: sidCPC gmail com
- Cc: gtk-app-devel-list gnome org
- Subject: Re: manage a list
- Date: Fri, 23 Feb 2007 11:40:16 +0100
On 2/22/07, Jerome Le Saux <jlesaux free fr> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]