mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
Merge branch '1791-macos-get-mime-dirs' into 'master'
gcontenttype: Add no-op versions of {get,set}_mime_dirs() on win32/macOS Closes #1791 See merge request GNOME/glib!927
This commit is contained in:
commit
298ee8f87c
@ -83,6 +83,21 @@ get_registry_classes_key (const char *subdir,
|
||||
return value_utf8;
|
||||
}
|
||||
|
||||
/*< private >*/
|
||||
void
|
||||
g_content_type_set_mime_dirs (const gchar * const *dirs)
|
||||
{
|
||||
/* noop on Windows */
|
||||
}
|
||||
|
||||
/*< private >*/
|
||||
const gchar * const *
|
||||
g_content_type_get_mime_dirs (void)
|
||||
{
|
||||
const gchar * const *mime_dirs = { NULL };
|
||||
return mime_dirs;
|
||||
}
|
||||
|
||||
gboolean
|
||||
g_content_type_equals (const gchar *type1,
|
||||
const gchar *type2)
|
||||
|
@ -100,6 +100,21 @@ create_cstr_from_cfstring_with_fallback (CFStringRef str,
|
||||
return cstr;
|
||||
}
|
||||
|
||||
/*< private >*/
|
||||
void
|
||||
g_content_type_set_mime_dirs (const gchar * const *dirs)
|
||||
{
|
||||
/* noop on macOS */
|
||||
}
|
||||
|
||||
/*< private >*/
|
||||
const gchar * const *
|
||||
g_content_type_get_mime_dirs (void)
|
||||
{
|
||||
const gchar * const *mime_dirs = { NULL };
|
||||
return mime_dirs;
|
||||
}
|
||||
|
||||
gboolean
|
||||
g_content_type_equals (const gchar *type1,
|
||||
const gchar *type2)
|
||||
|
Loading…
Reference in New Issue
Block a user