[java-gnome-hackers] GtkCellRendererCombo - help appreciated
Brought to you by:
afcowie
From: Stefan P. <st...@pr...> - 2008-05-13 21:35:09
|
Hi all, I am trying to figure out a way to set the "model" property of the CellRendererCombo to provide coverage for this type. * I tried providing a method void org.gnome.gtk.CellRendererCombo.setModel(TreeModel model) { setPropertyObject("model","model) } (using GObject.setPropertyObject()) and received a warning unable to set property 'model' of type 'GtkTreeModel' from value of type 'GObject' * I also tried to use store the TreeModel in a different column by using a DataColumnReference (which I hoped would simply store the object) void CellRendererCombo.setModel(DataColumReference column) { GtkCellLayout.addAttribute(vertical,this,"model",column.getOrdinal()); } unable to set property 'model' of type 'GtkTreeModel' from value of type 'BindingsJavaReference' It seems I am just missing a method which retains the intended type until finally calling GTK. But after some blind digging through the generated code (and not having the JNI overview) I must admit that I don't know how to proceed. Any idea/hint/help is welcome. Regards, Stefan |