Re: [Vala] Compilation errors

On Sun, 2012-09-02 at 03:43 +0530, Satyajit Sahoo wrote:
Hi. I'm trying to make a small GUI with vala and GTK3. But I get error when
compiling. I'll be grateful if someone could fix it. I'm really a noob in
vala and this is probably my first program.

The code is here -

I get this error,

valac --pkg gtk+-3.0 gtk-theme-config.vala -o gtk-theme-config
gtk-theme-config.vala:131.12-131.40: error: invocation of void method
not allowed as expression
              color =  this.color_button.get_rgba ();
Compilation failed: 1 error(s), 0 warning(s)
make: *** [gtk-theme-config] Error 1

I'm guessing you're using vala <= 0.14.  The bindings for
Gtk.ColorButton.get_rgba were broken until 0.16.

You can update your copy of Vala, fix the bindings on your system, use
an internal VAPI in your project (either replacing or supplementing the
system gtk+-3.0 binding), or use the extern keyword.  The correct
signature is:

public Gdk.RGBA get_rgba ();

but before 0.16 it was

public void get_rgba (Gdk.RGBA rgba);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]