[systemd-commits] src/gnome-ask-password-agent.vala

Kay Sievers kay at kemper.freedesktop.org
Fri Mar 11 06:44:42 PST 2011


 src/gnome-ask-password-agent.vala |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 202df05e0f01d79177dfeee6acf1748089f484a8
Author: Kay Sievers <kay.sievers at vrfy.org>
Date:   Fri Mar 11 15:41:37 2011 +0100

    gnome-ask-password-agent: check for vala 0.10 instead of libnotify

diff --git a/src/gnome-ask-password-agent.vala b/src/gnome-ask-password-agent.vala
index 1d3b715..4681368 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 LIBNOTIFY07
-                        stream.write(password.data, null);
-#else
+#if VALA_0_10
                         stream.write(password, password.length, null);
+#else
+                        stream.write(password.data, null);
 #endif
                 } catch (Error e) {
                         show_error(e.message);



More information about the systemd-commits mailing list