Re: manage a list



On Thu, 2007-02-22 at 16:47 +0100, Jerome Le Saux wrote:
> 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 ?
> Have you got a short example ?
> I'm coding in C++.

GtkItem is a different class, totally unrelated to GtkListStore.

Now, for using GtkListStore: If you're using GTKmm, the C++ bindings,
the GTKmm tutorial/book (available in their web site) describes how to
use tree models and views.  If you're using the C API, the following is
a good tutorial:

http://scentric.net/tutorial/

- Michael

-- 
Michael Ekstrand
Research Assistant, Scalable Computing Laboratory
Goanna, compute cluster and InfiniBand network monitor tool:
        http://www.scl.ameslab.gov/Projects/Monitor/




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