Re: [Vala] Some basic questions

2008-04-07 Thread Jürg Billeter
On Wed, 2008-04-02 at 12:52 +0200, Juerg Billeter wrote: > On Sat, March 22, 2008 20:06, Mikael Hermansson wrote: > > 1: > > > > If I want a copy of Gtk.TreePath I have to use weak but the problem is > > howto free it after use? > > That's a bug in the bindings, copy should obviously not return a

Re: [Vala] Some basic questions

2008-04-02 Thread Juerg Billeter
On Sat, March 22, 2008 20:06, Mikael Hermansson wrote: > 1: > > If I want a copy of Gtk.TreePath I have to use weak but the problem is > howto free it after use? That's a bug in the bindings, copy should obviously not return a weak reference. > 2: > > Another problem probadly a binding bug: > > w

Re: [Vala] Some basic questions

2008-03-23 Thread Mikael Hermansson
On Sat, 2008-03-22 at 19:23 +, Phil Housley wrote: > On 22/03/2008, Mikael Hermansson <[EMAIL PROTECTED]> wrote: > > 1: > > > > If I want a copy of Gtk.TreePath I have to use weak but the problem is > > howto free it after use? > > > > TreePath a; > > weak TreePath b; > > > > b=a.copy();

Re: [Vala] Some basic questions

2008-03-22 Thread Phil Housley
On 22/03/2008, Mikael Hermansson <[EMAIL PROTECTED]> wrote: > 1: > > If I want a copy of Gtk.TreePath I have to use weak but the problem is > howto free it after use? > > TreePath a; > weak TreePath b; > > b=a.copy(); > b.[free/unref] <- does not work. You should never have to free anything

[Vala] Some basic questions

2008-03-22 Thread Mikael Hermansson
1: If I want a copy of Gtk.TreePath I have to use weak but the problem is howto free it after use? TreePath a; weak TreePath b; b=a.copy(); b.[free/unref] <- does not work. 2: Another problem probadly a binding bug: weak List selection = tw.get_selection().get_selected_rows(); Because of t