From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-video/gnome-mplayer/files: gnome-mplayer-1.0.0-libnotify-0.7.patch |
Date: | Sat, 29 Jan 2011 13:47:16 |
Message-Id: | 20110129134702.6311A20054@flycatcher.gentoo.org |
1 | ssuominen 11/01/29 13:47:02 |
2 | |
3 | Added: gnome-mplayer-1.0.0-libnotify-0.7.patch |
4 | Log: |
5 | Fix building with x11-libs/libnotify >= 0.7. |
6 | |
7 | (Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-video/gnome-mplayer/files/gnome-mplayer-1.0.0-libnotify-0.7.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/gnome-mplayer/files/gnome-mplayer-1.0.0-libnotify-0.7.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/gnome-mplayer/files/gnome-mplayer-1.0.0-libnotify-0.7.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: gnome-mplayer-1.0.0-libnotify-0.7.patch |
16 | =================================================================== |
17 | diff -ur gnome-mplayer-1.0.0.orig/src/gui.c gnome-mplayer-1.0.0/src/gui.c |
18 | --- gnome-mplayer-1.0.0.orig/src/gui.c 2010-11-05 18:16:22.000000000 +0200 |
19 | +++ gnome-mplayer-1.0.0/src/gui.c 2011-01-29 15:45:00.000000000 +0200 |
20 | @@ -470,13 +470,21 @@ |
21 | #ifdef NOTIFY_ENABLED |
22 | if (show_notification && control_id == 0 && !gtk_window_is_active((GtkWindow *) window)) { |
23 | notify_init("gnome-mplayer"); |
24 | +#ifdef NOTIFY0_7_ENABLED |
25 | + notification = |
26 | + notify_notification_new(idle->display_name, idle->media_notification, |
27 | + "gnome-mplayer"); |
28 | +#else |
29 | notification = |
30 | notify_notification_new(idle->display_name, idle->media_notification, |
31 | "gnome-mplayer", NULL); |
32 | +#endif |
33 | #ifdef GTK2_12_ENABLED |
34 | +#ifndef NOTIFY0_7_ENABLED |
35 | if (show_status_icon) |
36 | notify_notification_attach_to_status_icon(notification, status_icon); |
37 | #endif |
38 | +#endif |
39 | notify_notification_show(notification, NULL); |
40 | notify_uninit(); |
41 | } |