[Vala] ActionEntry callback what am I doing wrong?
- From: Dmitrijs Ledkovs <dmitrij ledkov gmail com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] ActionEntry callback what am I doing wrong?
- Date: Sat, 16 Jan 2010 22:01:58 +0000
using Gtk;
static void on_open() {}
public static void main (string[] args) {
ActionEntry fail = ActionEntry() {
name="open",
callback=on_open
};
}
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]