1 |
ssuominen 11/02/06 17:01:47 |
2 |
|
3 |
Added: ogmrip-0.13.6-libnotify-0.7.patch |
4 |
Log: |
5 |
Fix building with x11-libs/libnotify >= 0.7. |
6 |
|
7 |
(Portage version: 2.2.0_alpha20/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-video/ogmrip/files/ogmrip-0.13.6-libnotify-0.7.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ogmrip/files/ogmrip-0.13.6-libnotify-0.7.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ogmrip/files/ogmrip-0.13.6-libnotify-0.7.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: ogmrip-0.13.6-libnotify-0.7.patch |
16 |
=================================================================== |
17 |
--- src/ogmrip-progress-dialog.c |
18 |
+++ src/ogmrip-progress-dialog.c |
19 |
@@ -32,6 +32,9 @@ |
20 |
|
21 |
#ifdef HAVE_LIBNOTIFY_SUPPORT |
22 |
#include <libnotify/notify.h> |
23 |
+#ifndef NOTIFY_CHECK_VERSION |
24 |
+#define NOTIFY_CHECK_VERSION(x,y,z) 0 |
25 |
+#endif |
26 |
#endif /* HAVE_LIBNOTIFY_SUPPORT */ |
27 |
|
28 |
#define OGMRIP_PROGRESS_DIALOG_GET_PRIVATE(o) \ |
29 |
@@ -418,8 +421,12 @@ |
30 |
g_signal_connect_swapped (dialog->priv->status_icon, "popup_menu", |
31 |
G_CALLBACK (ogmrip_progress_dialog_status_icon_popup_menu), dialog); |
32 |
|
33 |
+#if NOTIFY_CHECK_VERSION (0, 7, 0) |
34 |
+ /* notify_notification_new_with_status_icon was removed */ |
35 |
+#else |
36 |
dialog->priv->notification = notify_notification_new_with_status_icon ("Dummy", "Dummy", |
37 |
OGMRIP_DATA_DIR G_DIR_SEPARATOR_S OGMRIP_ICON_FILE, dialog->priv->status_icon); |
38 |
+#endif |
39 |
g_signal_connect (dialog, "window-state-event", |
40 |
G_CALLBACK (ogmrip_progress_dialog_state_changed), NULL); |