Lines 47-52
Link Here
|
47 |
#include <libnotify/notify.h> |
47 |
#include <libnotify/notify.h> |
48 |
#include <gdk/gdk.h> |
48 |
#include <gdk/gdk.h> |
49 |
|
49 |
|
|
|
50 |
#ifndef NOTIFY_CHECK_VERSION |
51 |
#define NOTIFY_CHECK_VERSION(x,y,z) 0 |
52 |
#endif |
53 |
|
50 |
static PRBool gHasActions = PR_FALSE; |
54 |
static PRBool gHasActions = PR_FALSE; |
51 |
|
55 |
|
52 |
static void notify_action_cb(NotifyNotification *notification, |
56 |
static void notify_action_cb(NotifyNotification *notification, |
Lines 204-210
Link Here
|
204 |
{ |
208 |
{ |
205 |
NotifyNotification* notify = notify_notification_new(mAlertTitle.get(), |
209 |
NotifyNotification* notify = notify_notification_new(mAlertTitle.get(), |
206 |
mAlertText.get(), |
210 |
mAlertText.get(), |
207 |
NULL, NULL); |
211 |
NULL |
|
|
212 |
#if NOTIFY_CHECK_VERSION (0, 7, 0) |
213 |
); |
214 |
#else |
215 |
,NULL ); |
216 |
#endif |
208 |
if (!notify) |
217 |
if (!notify) |
209 |
return NS_ERROR_OUT_OF_MEMORY; |
218 |
return NS_ERROR_OUT_OF_MEMORY; |
210 |
|
219 |
|