[Gtk-sharp-list] Problems with Gtk.TreeView.

Erik Bågfors erik@bagfors.nu
16 Jun 2003 09:22:12 +0200


On Mon, 2003-06-16 at 04:03, Mike Kestner wrote:
> On Tue, 2003-06-10 at 03:12, Erik BÃ¥gfors wrote:
> 
> > In c I use
> >  gtk_tree_view_insert_column_with_attributes and gtk_list_store_set to
> > do that but I cannot find those methods in gtk-sharp.
> 
> Any time you see an elipsis signature in the C API, you will not find a
> corresponding C# wrapper.  If anyone has any great ideas or pointers to
> docs for addressing this problem, send them this way.

I'm sorry but what is elipsis? :)

> 
> > Another thing,
> > Sometimes you can really feel that gtk-sharp is a wrapper over somethin=
g
> > originally written in c. For example when I have to use GLib.  For
> > example the following code:
> > 
> > ListStore store = new ListStore((int)TypeFundamentals.TypeString,
> >                            (int)TypeFundamentals.TypeString);
> > TreeIter iter = new TreeIter();
> > store.Append(out iter)
> > store.SetValue(iter, 0, new GLib.Value("TEST1")); 
> > 
> > Why should I have to care about GLib.Value here? I should be able to
> > just say
> > store.SetValue(iter,0,"TEST1");
> 
> I think you can already with Rachel's recent TreeView enhancements.
> 

Yes, at least I don't have to care about GLib.Value anymore.  The rest I
haven't tried yet. I was also able to set the background and foreground
colors with that. Great work! :)

/Erik

-- 
erik@bagfors.nu
fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32