summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gnome-ask-password-agent.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gnome-ask-password-agent.vala b/src/gnome-ask-password-agent.vala
index 75cfabfabb..1d3b715663 100644
--- a/src/gnome-ask-password-agent.vala
+++ b/src/gnome-ask-password-agent.vala
@@ -239,7 +239,11 @@ public class MyStatusIcon : StatusIcon {
null);
OutputStream stream = new UnixOutputStream(to_process, true);
+#if LIBNOTIFY07
stream.write(password.data, null);
+#else
+ stream.write(password, password.length, null);
+#endif
} catch (Error e) {
show_error(e.message);
}