Re: [Vala] Minor modifications
- From: Zsombor <gzsombor gmail com>
- To: "Jürg Billeter" <j bitron ch>
- Cc: vala paldo org
- Subject: Re: [Vala] Minor modifications
- Date: Mon, 28 May 2007 10:34:56 +0200
On 5/10/07, Jürg Billeter <j bitron ch> wrote:
On Don, 2007-05-10 at 22:05 +0200, Zsombor wrote:
> 2007. 05. 7, hétfő keltezéssel 12.06-kor Jürg Billeter ezt írta:
> > On Mon, 2007-04-30 at 17:47 +0200, Zsombor wrote:
> > > Index: glib-2.0.vala
> > > + [CCode (cname = "G_TYPE_STRING")]
> > > + public static GLib.Type get_type();
> >
> > I don't think that this will work as G_TYPE_STRING is not a function.
>
> I'm sure you know a better approach, but for me, it's worked, so I could
> write:
> listStore = new ListStore(2,Gdk.Pixbuf.get_type(),string.get_type);
>
> I don't know how can I access this G_TYPE_STRING macro in other way.
There is a typeof operator in Vala:
listStore = new ListStore (2, typeof (Gdk.Pixbuf), typeof (string));
Jürg
And how can i access G_TYPE_INVALID and G_TYPE_STRV. typeof(string[]) doesn't work.
BR,
Zsombor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]