~ubuntu-desktop/gvfs/ubuntu

« back to all changes in this revision

Viewing changes to debian/patches/02_music-player-mimetype.patch

  • Committer: Martin Pitt
  • Date: 2010-03-23 20:00:29 UTC
  • Revision ID: martin.pitt@canonical.com-20100323200029-7bl7ok6wefwvpuuh
abandon branch in favor of lp:ubuntu/gvfs

Show diffs side-by-side

added added

removed removed

Lines of Context:
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;