[Vala] ActionEntry callback what am I doing wrong?

using Gtk;
static void on_open() {}
public static void main (string[] args) {
        ActionEntry fail = ActionEntry() {

This fails to compile:

$ valac --pkg gtk+-2.0 sample.vala
sample.vala:4.14-7.2: warning: local variable `fail' declared but never used
sample.vala.c: In function ‘_main’:
sample.vala.c:29: warning: assignment from incompatible pointer type
sample.vala.c:29: error: ‘GtkActionEntry’ has no member named ‘callback_target’
error: cc exited with status 256
Compilation failed: 1 error(s), 1 warning(s)

Please help =)

With best regards

Dmitrijs Ledkovs (for short Dima),
Ледков Дмитрий Юрьевич

()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

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