summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-12-31 18:15:27 +0100
committerKay Sievers <kay.sievers@vrfy.org>2011-12-31 18:15:27 +0100
commitbb765041af1ac01b822a08609598d1af901e87f7 (patch)
tree8695d80d551e963db8d8a0df47d8f8cf1b3ee3af /src
parentc47ac9992f3274597802cde47922bb9809185eaf (diff)
gnome-ask-password-agent: require libnotify >= 0.7.0
Diffstat (limited to 'src')
-rw-r--r--src/gnome-ask-password-agent.vala10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gnome-ask-password-agent.vala b/src/gnome-ask-password-agent.vala
index c31c07e3db..e23aedbfee 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();