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

[Vala] Vala arrays and libraries bindings

2012-05-27 Thread Дмитрий Петров
Hello everyone, I'm very new to vala and my current task is to build an application using webkit-gtk component. One thing that I can't deal with is how valac translates the arrays, that should be passed to the function. As an example: I need to define a javascript function that will return an js

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