]> err.no Git - systemd/commitdiff
gnome-ask-password-agent: restore removed libnotify0.6 support
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 11 Mar 2011 13:09:10 +0000 (14:09 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 11 Mar 2011 13:09:10 +0000 (14:09 +0100)
src/gnome-ask-password-agent.vala

index 75cfabfabbcb33ac74900c4697a4bd316ba469be..1d3b71566353aa34b8018272213ed422592dd6bd 100644 (file)
@@ -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);
                 }