summaryrefslogtreecommitdiff
path: root/gio/gcontenttype-win32.c
Commit message (Collapse)AuthorAgeFilesLines
* gio: Add SPDX license headers automaticallyPhilip Withnall2022-05-181-0/+2
| | | | | | | | | | | | | | Add SPDX license (but not copyright) headers to all files which follow a certain pattern in their existing non-machine-readable header comment. This commit was entirely generated using the command: ``` git ls-files gio/*.[ch] | xargs perl -0777 -pi -e 's/\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/\n \*\n \* SPDX-License-Identifier: LGPL-2.1-or-later\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/igs' ``` Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1415
* gio: relax g_content_type_is_a on win32Marc-André Lureau2022-03-091-7/+11
| | | | | | | This is quite gross, but it looks like the whole content-type code on Windows is similar. Pass test_subtype. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* gio: implement simple directory type detectionMarc-André Lureau2022-03-091-5/+16
| | | | | | | Use a logic similar to what is done for Unix, based on trailing path separator. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* gio: return '*' content type on win32 from unknown mimeMarc-André Lureau2022-03-091-1/+2
| | | | | | This fixes test_unknown. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* Fix signedness warning in gio/gcontenttype-win32.cEmmanuel Fleury2021-11-121-1/+1
| | | | | | | gio/gcontenttype-win32.c: In function 'get_registry_classes_key': gio/gcontenttype-win32.c:66:78: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'int' if (ExpandEnvironmentStringsW (wc_temp, wc_temp_expanded, len) == len) ^~
* gcontenttype: Add no-op versions of {get,set}_mime_dirs() on win32/macOSPhilip Withnall2019-07-241-0/+15
| | | | | | | | | | | | These are here to prevent linker errors, since `gcontenttype.[ch]` aren’t compiled on Windows or macOS. The implementations are stubs to be filled out by someone who knows each platform, at some point in the future. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1791
* gio/: LGPLv2+ -> LGPLv2.1+Sébastien Wilmet2017-05-291-1/+1
| | | | | | | | | | | | | | | | | Sub-directories inside gio/ already processed in a previous commit: - fam/ - gdbus-2.0/ (which contains only codegen/) - gvdb/ - inotify/ - tests/ - win32/ - xdgmime/ Other sub-directories inside gio/: - completion/: no license headers - kqueue/: not LGPL, BSD-style license https://bugzilla.gnome.org/show_bug.cgi?id=776504
* Create g_content_type_is_mime_type()TingPing2017-03-081-0/+17
| | | | | | Convenience wrapper around g_content_type_is_a(). https://bugzilla.gnome.org/show_bug.cgi?id=734946
* win32: Make g_content_type_get_mime_type work for directoriesMatthias Clasen2015-06-051-0/+3
| | | | | Now that we are using inode/directory for directories, handle this case in g_content_type_get_mime_type() as well.
* W32: Special treatment for inode/directory mime/typeРуслан Ижбулатов2015-06-051-0/+4
| | | | | | | | | | This is a hack for GLocalFileInfo to correctly get icons for directories. Without this change content type for any W32 directory is NULL (because there's no registry entry for "inode/directory" by default, and in any way there's no file extension that means "directory" to put there), and GLocalFileInfo uses content type to grab icons. https://bugzilla.gnome.org/show_bug.cgi?id=748727
* win32: Return proper icon namesMatthias Clasen2015-06-051-10/+9
| | | | | | The code here was returning gtk-directory and similar names as fallback, with a comment claiming that these are 'builtin gtk'. But they aren't, anymore, so just return the standard names.
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* Add Win32 versions of some new content type APIsMatthias Clasen2012-10-151-0/+12
| | | | | | | This commit adds minimal versions of g_content_type_get_symbolic_icon and g_content_type_get_generic_icon_name. https://bugzilla.gnome.org/show_bug.cgi?id=683642
* Split gcontenttype.cMatthias Clasen2012-07-031-0/+378
Instead of a giant #if G_OS_WIN32 #else #endif around the entire file, just split it into gcontenttype.c and gcontenttype-win32.c.