View previous topic :: View next topic |
Author |
Message |
mwarning
Joined: 01 Apr 2007 Posts: 56
|
Posted: Tue Jul 15, 2008 6:36 pm Post subject: TreeModelT.get(TreeIter iter, ... ) doesn't seem to work. |
|
|
model and iter are both valid as far as I can tell.
Quote: | char[] data = new char[32]; //just for some testing
model.get(iter, 0, data.ptr, -1); |
After this line, data is filled with null (empty).
I also tried column 1, same result.
Both columns contain strings (GType.STRING).
Adding a dummy null after iter in the argument list doesn't help.
There i also output on the console:
Code: |
(gtk-gui:22311): Gtk-WARNING **: /tmp/buildd/gtk+2.0-2.12.9/gtk/gtktreemodel.c:1435: Invalid column number 135523188 accessed (remember to end your list of columns with a -1) |
|
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Wed Jul 16, 2008 12:20 pm Post subject: |
|
|
Yes, functions with varargs are not wrapped correctly, see ticket #16.
You can use: TreeModelIF.getValueString(TreeIter iter, int column); |
|
Back to top |
|
|
mwarning
Joined: 01 Apr 2007 Posts: 56
|
Posted: Thu Jul 17, 2008 2:37 am Post subject: |
|
|
Quote: | TreeModelIF.getValueString(TreeIter iter, int column); |
Works, thanks! |
|
Back to top |
|
|
eldar
Joined: 14 Jun 2008 Posts: 101 Location: Ufa, Russia
|
Posted: Tue Jul 22, 2008 7:47 am Post subject: |
|
|
mandel
I wanna ask you if you are implementing custom model? I didn't gain any success in it, I will appreciate any little help |
|
Back to top |
|
|
mwarning
Joined: 01 Apr 2007 Posts: 56
|
Posted: Sun Jul 27, 2008 9:15 am Post subject: |
|
|
Code: | I wanna ask you if you are implementing custom model? |
Not yet. Maybe some time in the future. |
|
Back to top |
|
|
|