From 8cdf08df0841a176fe932dfa615c87ad87f59377 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 8 Mar 2011 12:25:06 +0000 Subject: [PATCH] X11TrayIcon LibNotify API change, RM #44 (thanks Lionel!) git-svn-id: svn://ultimatepp.org/upp/trunk@3272 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/TrayIconX11.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/uppsrc/CtrlLib/TrayIconX11.cpp b/uppsrc/CtrlLib/TrayIconX11.cpp index bdf8ce2af..230548338 100644 --- a/uppsrc/CtrlLib/TrayIconX11.cpp +++ b/uppsrc/CtrlLib/TrayIconX11.cpp @@ -7,6 +7,9 @@ #if !defined(flagNOGTK) #include #include + #ifdef NOTIFY_CHECK_VERSION + #define NOTIFY_VERSION_GT_0_7_0 + #endif #endif NAMESPACE_UPP @@ -106,7 +109,11 @@ void TrayIcon::Message(int type, const char *title, const char *text, int timeou NotifyNotification *notification = notify_notification_new (title, text , type == 1 ? "gtk-dialog-info" : type == 2 ? "gtk-dialog-warning" - : "gtk-dialog-error", NULL); + : "gtk-dialog-error" +#ifndef NOTIFY_VERSION_GT_0_7_0 + , NULL +#endif + ); notify_notification_set_timeout(notification, timeout * 1000); notify_notification_show (notification, &error); #endif