diff options
author | Guido Günther <agx@sigxcpu.org> | 2008-10-18 18:17:19 +0200 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2008-10-18 18:17:19 +0200 |
commit | 6a45cdd4cc1321567d929f41721792c9e3d38401 (patch) | |
tree | c3fd44df49218df644765e624c247d16358bd474 /src/krb5-auth-notify.c | |
parent | Imported Upstream version 0.7.git7cc1d84 (diff) | |
download | krb5-auth-dialog-6a45cdd4cc1321567d929f41721792c9e3d38401.tar.gz krb5-auth-dialog-6a45cdd4cc1321567d929f41721792c9e3d38401.tar.bz2 krb5-auth-dialog-6a45cdd4cc1321567d929f41721792c9e3d38401.zip |
Imported Upstream version 0.7.jit26357da
Diffstat (limited to 'src/krb5-auth-notify.c')
-rw-r--r-- | src/krb5-auth-notify.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/krb5-auth-notify.c b/src/krb5-auth-notify.c index 3186a47..019662e 100644 --- a/src/krb5-auth-notify.c +++ b/src/krb5-auth-notify.c @@ -18,15 +18,14 @@ */ #include "config.h" - -#ifdef HAVE_LIBNOTIFY - #include "krb5-auth-applet.h" #include "krb5-auth-notify.h" +#ifdef HAVE_LIBNOTIFY +#include <libnotify/notify.h> + void ka_send_event_notification (Krb5AuthApplet *applet, - NotifyUrgency urgency, const char *summary, const char *message, const char *icon) @@ -50,8 +49,18 @@ ka_send_event_notification (Krb5AuthApplet *applet, applet->notification = \ notify_notification_new_with_status_icon(summary, message, notify_icon, applet->tray_icon); - notify_notification_set_urgency (applet->notification, urgency); + notify_notification_set_urgency (applet->notification, NOTIFY_URGENCY_NORMAL); notify_notification_show (applet->notification, NULL); } +#else /* HAVE_LIBNOTIFY */ + +void +ka_send_event_notification (Krb5AuthApplet *applet __attribute__((__unused__)), + const char *summary __attribute__((__unused__)), + const char *message __attribute__((__unused__)), + const char *icon __attribute__((__unused__))) +{ +} + #endif /* HAVE_LIBNOTIFY */ |