On Fri, 2012-12-28 at 21:24 +0200, Александер Пономарёв wrote: > Hi folks, > I'm sorry for a newbie question, but I really can't find it in google: > how to get information about operating system in vala? > Trying Osinfo: > > $ valac --pkg osinfo-1.0 myprogram.vala > > but it doesn't work: > > libosinfo-1.0.vapi:150.69-150.84: error: The type name > `GLib.Cancellable' could not be found > public static Osinfo.Media create_from_location (string > location, > GLib.Cancellable? cancellable) throws GLib.Error;
GLib.Cancellable is in gio-2.0. Just add --pkg gio-2.0 to your valac invocation. -Evan _______________________________________________ vala-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/vala-list
