/[packages]/cauldron/gvfs/pristine/SOURCES/gvfs-music-player-mimetype.patch
ViewVC logotype

Contents of /cauldron/gvfs/pristine/SOURCES/gvfs-music-player-mimetype.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 75588 - (show annotations) (download)
Tue Mar 22 21:08:22 2011 UTC (13 years, 1 month ago) by schedbot
File size: 1053 byte(s)
Copying release 1.7.2-2.mga1 to pristine/ directory.
1 # Description: Add media player content type if we have a multimedia-player icon. This is a kludge until https://bugs.freedesktop.org/show_bug.cgi?id=24500 gets discussed/solved properly.
2 # Ubuntu: https://launchpad.net/bugs/440290
3
4 Index: gvfs-1.5.1/monitor/gdu/ggdumount.c
5 ===================================================================
6 --- gvfs-1.5.1.orig/monitor/gdu/ggdumount.c 2009-11-18 13:14:51.000000000 +0100
7 +++ gvfs-1.5.1/monitor/gdu/ggdumount.c 2009-12-05 14:51:53.000000000 +0100
8 @@ -1362,6 +1362,16 @@
9 }
10 }
11
12 + /* also add media player if we have the multimedia-player icon (or a variant
13 + * like multimedia-player-ipod-white); basing this on the icon is a kludge,
14 + * better solution is being discussed in FD#24500 */
15 + if (device != NULL)
16 + {
17 + const char* icon = gdu_device_get_presentation_icon_name (device);
18 + if (icon != NULL && g_str_has_prefix (icon, "multimedia-player"))
19 + g_ptr_array_add (p, g_strdup ("x-content/audio-player"));
20 + }
21 +
22 if (p->len == 0)
23 {
24 result = NULL;

  ViewVC Help
Powered by ViewVC 1.1.30