diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-03-11 15:55:20 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-03-11 15:55:20 +0100 |
commit | e75c058023a7e130599f5a3ae2981540d8e397c8 (patch) | |
tree | 7c21e426675bfca14ee4f20d2527ae9db26c93b2 /src | |
parent | 202df05e0f01d79177dfeee6acf1748089f484a8 (diff) |
gnome-ask-password-agent.vala: check for VALA_0_12
<juergbi> VALA_0_X is defined up to and including the current version
<juergbi> so VALA_0_10 is defined in 0.10 and 0.11 and 0.12
<juergbi> VALA_0_12 is defined in 0.11 and 0.12 (and later versions)
<juergbi> reverse the branches and use VALA_0_12 as conditional
<kay> juergbi: changing api but keep the defines?
<kay> how do we support vala 0.14 then?
<kay> you keep that model with the old defines?
<juergbi> VALA_0_10 corresponds to valaversion >= 0.10
Diffstat (limited to 'src')
-rw-r--r-- | src/gnome-ask-password-agent.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gnome-ask-password-agent.vala b/src/gnome-ask-password-agent.vala index 46813683af..4f89a3e6d8 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); |