[Gtk-sharp-list] Weird behavior in CellRendererToggle ...

Mike Kestner mkestner@speakeasy.net
Fri, 17 Oct 2003 11:14:47 -0500


On Thu, 2003-10-16 at 03:37, Daniel Kornhauser wrote:

> After thinking about what I was coding I wrote code that works kind of
> better but is not perfect:
> 
> 			column = new TreeViewColumn("Alex", rendererToggle,
> 					"active", Column.Alex);
> 			column.Visible = true;

That should be rendererToggle.Visible = true;  Those properties in
insert_with_attributes are on the renderer.  

> What is the right way of handling this ?

Just as you have.

> Can the TreeViewColumn constructor handle several arguments ?

If you mean is there an "ellipsis" version, no.  That idiom really isn't
available in Gtk#, and besides, I don't think it's good programming
style.  The way you have it coded gives you compile time type checking. 
APIs like the c api leave you guessing until you see a runtime
error/warning spew.

-- 
Mike Kestner <mkestner@speakeasy.net>