mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-16 12:28:48 +02:00
Unalias. Patch by Markus Bergman
* gcontentype.c (g_content_type_from_mime_type): Unalias. Patch by Markus Bergman svn path=/trunk/; revision=7109
This commit is contained in:
parent
9df3b94a0d
commit
9b89825af0
@ -1,3 +1,10 @@
|
|||||||
|
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
Bug 539090 – g_content_type_from_mime_type() should unalias
|
||||||
|
|
||||||
|
* gcontentype.c (g_content_type_from_mime_type): Unalias.
|
||||||
|
Patch by Markus Bergman
|
||||||
|
|
||||||
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 538836 – make check failure on PPC and ALPHA: pltcheck.sh on
|
Bug 538836 – make check failure on PPC and ALPHA: pltcheck.sh on
|
||||||
|
@ -832,10 +832,16 @@ looks_like_text (const guchar *data, gsize data_size)
|
|||||||
char *
|
char *
|
||||||
g_content_type_from_mime_type (const char *mime_type)
|
g_content_type_from_mime_type (const char *mime_type)
|
||||||
{
|
{
|
||||||
|
char *umime;
|
||||||
|
|
||||||
g_return_val_if_fail (mime_type != NULL, NULL);
|
g_return_val_if_fail (mime_type != NULL, NULL);
|
||||||
|
|
||||||
|
G_LOCK (gio_xdgmime);
|
||||||
/* mime type and content type are same on unixes */
|
/* mime type and content type are same on unixes */
|
||||||
return g_strdup (mime_type);
|
umime = g_strdup (xdg_mime_unalias_mime_type (mime_type));
|
||||||
|
G_LOCK (gio_xdgmime);
|
||||||
|
|
||||||
|
return umime;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user