Re: [Vala] ActionEntry callback what am I doing wrong?



YES thank you! Another project to learn from =)

2010/1/17 JM <interflug1 gmx net>:
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 =)







-- 
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]