RE: [Java-gnome-developer] Problems with TreeView
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2003-11-17 15:37:43
|
Please checkout the code in cvs. I believe I have fixed the problem. To see it work you can look at the updated TestGTK application. Please let me know if you are still having problems. -Jeff > Apparently something got broken from 0.8 to 0.8.1 in what > regards to the > TreeView component. > Considering the following defenitions: > DataBlockInt dataIndex = new DataBlockInt(); > DataBlockString dataName = new DataBlockString(); > DataBlockBoolean dataExtract = new DataBlockBoolean(); > ListStore list = new ListStore(new DataBlock[]{dataIndex, dataExtract, > dataName}); > > While this still does not work properly (without showing a warning): > // To get wheter or not the item is selected > TreeIter i = list.getIter(String.valueOf(index)); > return list.getValue(i, dataExtract); > > Now this does not work too: > // Now to get the name of the item > TreeIter iter = list.getIter(String.valueOf(index)); > return list.getValue(iter, dataName); > > This used to work before, now i feel obligated to have a java copy of > the names in a List as i already do for the boolean field (extract or > not), getting these fields from the treeview generates the following > error: > > (java-gnome:29591): GLib-GObject-WARNING **: gvalue.c:86: cannot > initialize GValue with type `gchararray', the value has already been > initialized as `gchararray' > > I am going to try to find out through the diffs what broke this and > maybe we can get the bolean value to work too. > > Tiago Cogumbreiro > > > > ------------------------------------------------------- > This SF. Net email is sponsored by: GoToMyPC > GoToMyPC is the fast, easy and secure way to access your computer from > any Web browser or wireless device. Click here to Try it Free! > https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/ g22lp.tmpl _______________________________________________ java-gnome-developer mailing list jav...@li... https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |