Re: [Java-gnome-developer] Strange error mesage when using treeView
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2006-06-22 11:17:05
|
On Thu, 2006-06-22 at 11:24 +0200, Kyrre Ness Sjobak wrote: > TreeViewColumn col0 = new TreeViewColumn(); > CellRendererText render0 = new CellRendererText(); > col0.setTitle("Channel name"); > col0.addAttributeMapping(render0, CellRendererText.Attribute.TEXT, datacolumn0); No biggie. You missed out a step. You have to pack the CellRenderer into the TreeViewColumn. Add something like col0.packStart(render0, true) evidently before you call the TreeView's appendColumn(). [I was actually under the impression that you had to call it before you call the TreeViewColumn's addAttributeMapping(). Do let me know if that's the case] > What does it mean? I don't understand... Errors like that bubbling out of GTK are usually because you're using it improperly. Over time, I hope we can catch this sort of thing at the Java layer before passing down through JNI to the C GTK library. For now, we should certainly update the javadoc a bit! > Its all GPL, so it isn't any problem :) Good show. AfC Sydney -- Andrew Frederick Cowie Technology strategy, managing change, establishing procedures, and executing successful upgrades to mission critical business infrastructure. http://www.operationaldynamics.com/ Sydney New York Toronto London |