Listbox, Treeview and attaching pointers to rows
- From: Arto Karppinen <exeonical mail suomi net>
- To: gtk-app-devel-list gnome org
- Subject: Listbox, Treeview and attaching pointers to rows
- Date: Wed, 24 Oct 2007 15:04:10 +0300
Hi
Lets assume i have a simple, one row listbox.
Row one
Row two
Row n+1
And each row would be attached with a pointer, the same way for example
you can attach user_data to button clicks.
Like this:
Row one -> Data pointer 1
Row two -> Data pointer 1
Row n+1 -> Data pointer 1
And when the user makes a selection i catch the selection changed
signal, take the data pointer and do something with the data.
How would one accomplish such amazing task? Because i see no obvious,
easy way to do it. Currently I'm getting the row index from the iterator
and working my way upwards from that with an array where the correct
data happens to be in the same index.
--
Arto Karppinen
------------------------------
arto karppinen iki fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]