[Java-gnome-developer] CellRendererToggle not togglable
Brought to you by:
afcowie
|
From: Waldemar B. <wb...@gm...> - 2010-09-02 12:24:10
|
Hey,
I recently worked with the TreeView widget and came to this:
I added a DataColumnBoolean with a CellRendererToggle. The Checkbox
shows up like expected, but I am not able to change the state of the
checkbox.
Here's the source code.
entriesTreeView = new TreeView();
entriesTreeView.setModel(store);
entriesTreeView.setEnableSearch(true);
entriesTreeView.setHeadersClickable(true);
TreeViewColumn c;
c = entriesTreeView.appendColumn();
c.setTitle("Download");
c.setClickable(true);
CellRendererToggle r = new CellRendererToggle(c);
r.setActivatable(true);
I also tried r.setActive(true) and r.setActive(ColumnName). Nothing
worked :(
The store is a object of the type ListStore.
Hope someone can help me :)
|