Re: [Vala] ActionEntry callback what am I doing wrong?
- From: JM <interflug1 gmx net>
- To: Dmitrijs Ledkovs <dmitrij ledkov gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] ActionEntry callback what am I doing wrong?
- Date: Sun, 17 Jan 2010 11:17:01 +0100
Hello Dmitrijs
Please see
http://code.google.com/p/xnoise/source/browse/src/xnoise/xnoise-main-window.vala
on LINE 74 there is an example for some action entries.
I'm not sure if that is what you are looking for.
Hope it helps
Regards
Jörn
Am Samstag, den 16.01.2010, 22:01 +0000 schrieb Dmitrijs Ledkovs:
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 =)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]