From: Kay Sievers Date: Fri, 11 Mar 2011 14:55:20 +0000 (+0100) Subject: gnome-ask-password-agent.vala: check for VALA_0_12 X-Git-Tag: v21~114 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e75c058023a7e130599f5a3ae2981540d8e397c8;p=systemd gnome-ask-password-agent.vala: check for VALA_0_12 VALA_0_X is defined up to and including the current version so VALA_0_10 is defined in 0.10 and 0.11 and 0.12 VALA_0_12 is defined in 0.11 and 0.12 (and later versions) reverse the branches and use VALA_0_12 as conditional juergbi: changing api but keep the defines? how do we support vala 0.14 then? you keep that model with the old defines? VALA_0_10 corresponds to valaversion >= 0.10 --- diff --git a/src/gnome-ask-password-agent.vala b/src/gnome-ask-password-agent.vala index 46813683..4f89a3e6 100644 --- a/src/gnome-ask-password-agent.vala +++ b/src/gnome-ask-password-agent.vala @@ -239,10 +239,10 @@ public class MyStatusIcon : StatusIcon { null); OutputStream stream = new UnixOutputStream(to_process, true); -#if VALA_0_10 - stream.write(password, password.length, null); -#else +#if VALA_0_12 stream.write(password.data, null); +#else + stream.write(password, password.length, null); #endif } catch (Error e) { show_error(e.message);