32 lines
828 B
Diff
32 lines
828 B
Diff
|
Index: gtk/src/callbacks.c
|
||
|
===================================================================
|
||
|
--- gtk/src/callbacks.c (revision 3830)
|
||
|
+++ gtk/src/callbacks.c (working copy)
|
||
|
@@ -39,6 +39,10 @@
|
||
|
#endif
|
||
|
|
||
|
#include <libnotify/notify.h>
|
||
|
+#ifndef NOTIFY_CHECK_VERSION
|
||
|
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
|
||
|
+#endif
|
||
|
+
|
||
|
#include <gdk/gdkx.h>
|
||
|
#else
|
||
|
#define WINVER 0x0500
|
||
|
@@ -4881,9 +4885,13 @@
|
||
|
notification = notify_notification_new(
|
||
|
"Encode Complete",
|
||
|
"Put down that cocktail, Your HandBrake queue is done!",
|
||
|
- "hb-icon",
|
||
|
- NULL);
|
||
|
+ "hb-icon"
|
||
|
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
|
||
|
+ );
|
||
|
+#else
|
||
|
+ ,NULL);
|
||
|
notify_notification_attach_to_status_icon(notification, si);
|
||
|
+#endif
|
||
|
g_signal_connect(notification, "closed", (GCallback)notify_closed_cb, ud);
|
||
|
notify_notification_show(notification, NULL);
|
||
|
#endif
|