[10309] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] adding an additional pointer to a treeitem

daemon@ATHENA.MIT.EDU (Andre' Karwath)
Sat Nov 21 16:40:54 1998

Date: Sat, 21 Nov 1998 22:33:23 +0100
From: "Andre' Karwath" <Andre.Karwath@informatik.tu-chemnitz.de>
To: gtk-list <gtk-list@redhat.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Hello,

I'm quite new to this list and to Gtk too and have a small problem.

I've created a gtk_tree widget where I need to add tree item widgets at
runtime. Together with the item structure I'd like to store an
additional information (a string) for each tree item and need therefore
an additional pointer. I know that I can add all widgets to a
gtk_tree_item and that the default one is a label. Now, beside this
label I would like to store this additional pointer.

I know how to do this in C++ or other OO languages, but I have no
simple idea how I can do this in C using Gtk. Could anyone please help
me?

Thanks a lot.

-- 
 _____  _   _  _____
(  _  )( ) ( )(  _  )                       PENGUINS ARE COOL
| (_) || |/'/ | (_) |
|  _  || , <  |  _  | ---------------------------------------
| | | || |\ \ | | | | andre.karwath@informatik.tu-chemnitz.de
(_) (_)(_) (_)(_) (_)          http://www.tu-chemnitz.de/~aka

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post