chiark / gitweb /
gnome-ask-password-agent: restore removed libnotify0.6 support
[elogind.git] / 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);
                 }