aboutsummaryrefslogtreecommitdiff
path: root/src/krb5-auth-notify.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2008-10-18 18:17:23 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-10-18 18:17:23 +0200
commitf1bf81e507d3319a6b31f4f679165fb72d58086a (patch)
tree8f6ac6188a950d210f8c3e8fedbf29bc343aa4d5 /src/krb5-auth-notify.c
parentdocument changes and release 0.7.hit7cc1d84-1 (diff)
parentImported Upstream version 0.7.jit26357da (diff)
downloadkrb5-auth-dialog-f1bf81e507d3319a6b31f4f679165fb72d58086a.tar.gz
krb5-auth-dialog-f1bf81e507d3319a6b31f4f679165fb72d58086a.tar.bz2
krb5-auth-dialog-f1bf81e507d3319a6b31f4f679165fb72d58086a.zip
Merge commit 'upstream/0.7.jit26357da'
Diffstat (limited to 'src/krb5-auth-notify.c')
-rw-r--r--src/krb5-auth-notify.c19
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 */
bgstack15