Re: [Vala] Chain up base constructor troubles with C code...

2012-05-28 Thread Axel FILMORE
On 28/05/2012 06:52, PCMan wrote: It looks like you're using libfm/libfmgtk from pcmanfm project. :-) For performance reasons, in libfm we did not utilize gobject properties most of the time since we do not need this feature. So g_object_new with constructor properties won't work. Just replicatin

Re: [Vala] Chain up base constructor troubles with C code...

2012-05-27 Thread PCMan
It looks like you're using libfm/libfmgtk from pcmanfm project. :-) For performance reasons, in libfm we did not utilize gobject properties most of the time since we do not need this feature. So g_object_new with constructor properties won't work. Just replicating what are done by the C constructor

Re: [Vala] Chain up base constructor troubles with C code...

2012-05-27 Thread Axel FILMORE
On 27/05/2012 17:54, Kerrick Staley wrote: Axel, I believe that when you're inheriting from a C class in Vala code, calling the base class's constructor is not supported [1]. Instead, just replicate the original constructor's functionality at the beginning of your derived class's constructor: pu

Re: [Vala] Chain up base constructor troubles with C code...

2012-05-27 Thread Kerrick Staley
Axel, I believe that when you're inheriting from a C class in Vala code, calling the base class's constructor is not supported [1]. Instead, just replicate the original constructor's functionality at the beginning of your derived class's constructor: public class FolderView : Fm.FolderView, BaseVi

[Vala] Chain up base constructor troubles with C code...

2012-05-27 Thread Axel FILMORE
Hi there, to avoid some nasty duplicated code I try to use inheritance with a base abstract class and derived views. I need to create a terminal view and a folder view, while it works fine with my terminal view which is written in Vala, I've some troubles with the folder view which is C code