Hi all,

I try to create GLib.Menu subclass, but it fails. Here is code:

public class MyMenu : Menu {
    public MyMenu(){
        append ("Item label", "app.my-action");
    }
}

And here is error:

/home/mcbig/tmp-dev/vala/gmenu.vala.c:39:8: error: field ‘parent_instance’ has 
incomplete type
  GMenu parent_instance;
        ^
/home/mcbig/tmp-dev/vala/gmenu.vala.c:44:2: error: unknown type name 
‘GMenuClass’
  GMenuClass parent_class;
  ^
error: cc exited with status 256

Yes, there is not GMenuClass in gio/gio.h. I'm not sure if this problem
is in gio/gio.h or gio-2.0.vapi. I got this error on debian Jessie (valac-0.26).
What I see, glibmm define it's GMenuClass in it's giomm/menu.h.

Thanks a lot

-- 
Ondřej Tůma <mc...@zeropage.cz>
www: http://ipv6.mcbig.cz   jabber: mc...@jabber.cz   twitter: mcbig_cz

Attachment: pgpd6IBmYQ6WS.pgp
Description: OpenPGP digital signature

_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to