brianhsu
Joined: 17 Jan 2007 Posts: 9 Location: Taiwan
|
Posted: Sun Feb 04, 2007 2:58 am Post subject: Can't set model of CellRendererCombo. |
|
|
Hello, I'm here again.
I'm trying use ComboBox in some columns of TreeView, so I created a column using CellRendererCombo.
Since CellRendererCombo needs access GObject property directly, so my code looks lile:
Code: |
CellRendererCombo cell = new CellRendererCombo();
ListStore list = new ListStore([GtkType.STRING]);
cell.setProperty("editable", true);
cell.setProperty("model", store); // this faild
|
Compiler tell me that
Quote: | Error: cannot implicitly convert expression ((this.this).store) of type gtk.ListStore.ListStore to gobject.Value.Value |
I also tried create an gobject.Value of GType.POINTER or GType.G_OBJECT, it can be compiled, but will have run time warning and doesn't work correctly.
So, what should I check?
BTW, maybe this could be wrapped in the future version as a syntax sugar?[/code] |
|