Re: [Vala] avoid "method never used" warning for methods linked to Glade files in private class

2018-05-03 Thread Luc Chante
Hi, Except for nested class, I never found "private class" a good design (C# doesn't allow it). Your class should probaly be internal. Just a suggestion : Is there a name conflict with your methods ? When the class is public, the vala scope resolver found them, but when the class is

Re: [Vala] GTK_CHECK_VERSION in Vala

2018-04-26 Thread Luc Chante
Hi, You can't, sorry. Preprocessor in vala is simplistic, and doesn't intend to be more complex. https://wiki.gnome.org/Projects/Vala/FAQ#Does_Vala_have_a_preprocessor.3F But, you can define a symbol using valac command. You will find plenty of examples to do it with autotools, for meson you

Re: [Vala] Iterate in VAPI bindings

2016-12-30 Thread Luc Chante
Hello, I guess "Pkg.Repo" represents a single repo, so is it normal that "Pkg.Repo.repos (out r)" isn't called on every iteration ? What was the tested condition in the while-loop ? "while (Pkg.Status.OK == Pkg.Repo.repos (out r))" Hope it helps. Le ven. 30 déc. 2016 à 15:24, Olivier Duchateau

Re: [Vala] GLib.Menu subclass

2016-06-29 Thread Luc Chante
Hi, https://developer.gnome.org/gio/stable/GMenu.html#GMenu.other_details I'm not sure that GLib.Menu made to be overridable. You could decorate it : extend MenuModel, with a private property which is a Menu, and override every methods of MenuModel by calling the private property. private

Re: [Vala] Get CREATION DATE OR TIME of file

2016-01-08 Thread Luc Chante
Hi, You can test le file a attached to this mail. This is what I get (under windows with msys2 and vala 0.30) : $ ./test ** Message: test.vala:21: FileAttribute.TIME_CREATED => FileAttributeType.INVALID ** Message: test.vala:56: Can be read !!! ** Message: test.vala:60:

Re: [Vala] How to connect to signal if there's a property with the same name?

2015-12-10 Thread Luc Chante
Hi, According to this https://git.gnome.org/browse/vala/tree/vapi/gio-2.0.vapi#n516 it seems that the signal isn't bound in vala. Maybe vala doesn't accept yet that a property and a method (signal) have the same name. As Robert Schroll says, connect to the notify signal of the property. "...

[Vala] Json.Searializable implementation troubles

2015-08-07 Thread Luc Chante
), the property is steal serialized, but in this case the result is correct. Did I miss something, or is there a binding problem with json-glib ? Thank you. /* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ /* * core-json-api-simple-object.vala * Copyright (C) 2015 Luc

[Vala] Vala-0.26.2 for windows 64 bits

2015-06-24 Thread Luc Chante
Hi, I've compiled a 64 bits version of vala-0.26 for windows. It can be used with MinGW-builds (64 bits) http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.1/64-bit/threads-posix/seh/ and this GTK+ 3.14

[Vala] Use of vala in a production environment

2015-06-18 Thread Luc Chante
Hi everyone, I'm looking for a language to start a new project. This project consists of a server (a REST API server using JSON), and clients (nothing really new :-p). I am wondering if vala (or a particular version of vala) is stable and mature enough to be the base for developing the server