Re: [Java-gnome-developer] Simpler ListView
Brought to you by:
afcowie
From: Joao V. <jvi...@ya...> - 2005-04-05 17:49:40
|
It looks good... what do you think, Ka-Hing? As for the problem... it's happening in the refresh() method; i think you can't use an iter after you've removed it. That might be the problem (after removing it you're calling iter.getNextIter()). Maybe there is some problem with ListStore.removeRow(); in the javadoc it says iter should automatically be updated to the next iter after you remove it, but it seems that's not happening. BTW, in refresh() there's a part you call 'store.moveRowToEnd(iter);'... but what happens to 'i' (which is pointing to the row that should be added)? Oh, and some of the suggestions for the new TreeView are here: http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/JGDiscussionTreeViewEasier Cheers, J.V. --- Abcdefg <ab...@so...> wrote: > "I just looked at the code and it looks like it returns null when there > is not a next item. Could you verify this?" > > Yes, that's correct and my code does check this but it gives another > error.(java.lang.Exception: gtk_list_store_iter_next: assertion > `GTK_LIST_STORE (tree_model)->stamp == iter->stamp' failed) But I just > realised that I still run libgkt-java-2.4 so it is very likely that this is > already fixed in a newer one > > I will post back when I have tried it with the newer version > > david Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/ |