Re: [Vala] Newbie question (using directive)
- From: Wolfgang Mauer <wolfgang mauer kabelmail de>
- To: vala-list gnome org
- Subject: Re: [Vala] Newbie question (using directive)
- Date: Wed, 20 Feb 2019 13:49:47 +0100
I hope that this can be improved in future versions!
I far as i know, there some duplicated classes in GLib/Gtk
Menu
MenuItem
ListStore
....
In C# the "using" in my source is crucial.
/Wolfgang
Am 20.02.19 um 13:36 schrieb Miguel Miranda via vala-list:
GLib is included by default.
valac did find a conflict between namespaces so you must be specific about
the Menu's namespace you want to use.
Just use public <namespace>.Menu menu where <namespace> is either GLib or
Gtk.
I'll assume you are trying to use Gtk.Menu so change to:
public Gtk.Menu menu
Cheers.
On Wed, Feb 20, 2019 at 12:14 PM Wolfgang Mauer <wolfgang mauer kabelmail de>
wrote:
Hi all,
in my source i just have
using Gtk;
and no other using!
Now if i want to use
public Menu menu;
i get -> error: `Menu' is an ambiguous reference between `GLib.Menu' and
`Gtk.Menu'
But i don't have a "using GLib;" in my source !!!
Is this a Bug?
Greetings
Wolfgang
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]