chiark / gitweb /
gnome-ask-password-agent.vala: check for VALA_0_12
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 11 Mar 2011 14:55:20 +0000 (15:55 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 11 Mar 2011 14:55:20 +0000 (15:55 +0100)
<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

src/gnome-ask-password-agent.vala

index 46813683afb7edcf12e3d7be1de91059a604830d..4f89a3e6d8bb8f1c70052fe32b12736e82e03110 100644 (file)
@@ -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);