fix_libnotify_compat.diff

Lionel Orry, 03/08/2011 09:28 AM

Download (822 Bytes)

View differences:

uppsrc/CtrlLib/TrayIconX11.cpp (working copy)
7 7
#if !defined(flagNOGTK)
8 8
	#include <glib.h>
9 9
	#include <libnotify/notify.h>
10
	#ifdef NOTIFY_CHECK_VERSION
11
		#define NOTIFY_VERSION_GT_0_7_0
12
	#endif
10 13
#endif
11 14

  
12 15
NAMESPACE_UPP
......
106 109
	NotifyNotification *notification = notify_notification_new (title, text
107 110
					, type == 1 ? "gtk-dialog-info"
108 111
					: type == 2 ? "gtk-dialog-warning"
109
					: "gtk-dialog-error", NULL);
112
					: "gtk-dialog-error"
113
#ifndef NOTIFY_VERSION_GT_0_7_0
114
					, NULL
115
#endif
116
					);
110 117
	notify_notification_set_timeout(notification, timeout * 1000);
111 118
	notify_notification_show (notification, &error);
112 119
#endif