X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fgnome-ask-password-agent.vala;h=e23aedbfee435e22b1db545a742e4cd091b82920;hp=c31c07e3db0de0f21f4963f543698a0a0cb1f651;hb=071fd8c21eb43f9e465309304c6072ba45ee8dd1;hpb=7dcda352a609d063098e238db09c03cdc25c564b diff --git a/src/gnome-ask-password-agent.vala b/src/gnome-ask-password-agent.vala index c31c07e3d..e23aedbfe 100644 --- a/src/gnome-ask-password-agent.vala +++ b/src/gnome-ask-password-agent.vala @@ -37,13 +37,8 @@ public class PasswordDialog : Dialog { set_default_response(ResponseType.OK); set_icon_name(icon); -#if LIBNOTIFY07 add_button(Stock.CANCEL, ResponseType.CANCEL); add_button(Stock.OK, ResponseType.OK); -#else - add_button(STOCK_CANCEL, ResponseType.CANCEL); - add_button(STOCK_OK, ResponseType.OK); -#endif Container content = (Container) get_content_area(); @@ -190,12 +185,7 @@ public class MyStatusIcon : StatusIcon { set_visible(true); -#if LIBNOTIFY07 Notification n = new Notification(title, message, icon); -#else - Notification n = new Notification(title, message, icon, null); - n.attach_to_status_icon(this); -#endif n.set_timeout(5000); n.show();