I’m writing an API to handle treeviews, and listviews. I’m having a
problem with subclassing renderers. I subclassed
Gtk::CellRendererToggle, and I’m trying to give it “radio” button
class VR_CellRendererToggle < Gtk::CellRendererToggle
@radiox = false
This works fine. I create an instance of it and append() the column to
my treeview. The problem occurs when I try to retrieve it, and set the
“radio” instance variable to true:
@view.columns(CHECK_BOXES).cellrenderers.radiox = true
This has no effect because the renderer in the above statement returns a
copy of the renderer. I’ve verified this by showing each object’s
object_id on the screen. They don’t match.
Is this how its supposed to work? What can I do?