2008-08-17 23:39:43 -05:00

682 lines
23 KiB
Plaintext

2008-06-09 Bastien Nocera <hadess@hadess.net>
* src/xdgmimecache.c (cache_glob_node_lookup_suffix):
Patch by Matthias Clasen <mclasen@redhat.com> to implement
the compact suffix tree
2008-06-05 Bastien Nocera <hadess@hadess.net>
* src/xdgmimecache.c (cache_glob_node_lookup_suffix):
Patch by Matthias Clasen <mclasen@redhat.com> to fix reading
the suffix lookup (wrong offsets when reading the mime-type
offset and weight)
2008-06-03 Bastien Nocera <hadess@hadess.net>
* src/xdgmime.c (xdg_mime_dump):
* src/xdgmimecache.c (cache_glob_node_lookup_suffix),
(dump_glob_node), (_xdg_mime_cache_glob_dump):
* src/xdgmimecache.h: dumping code for the suffix reverse tree
from Matthias Clasen <mclasen@redhat.com>, and hooked up in
xdg_mime_dump, init the cache in xdg_mime_dump() in case
it's the only xdgmime function called
2008-06-03 Bastien Nocera <hadess@hadess.net>
* src/xdgmimecache.c: Patch from Matthias Clasen
<mclasen@redhat.com>: Bump the cache version to 1.1
2008-06-03 Bastien Nocera <hadess@hadess.net>
* src/Makefile:
* src/test-mime.c (test_one_icon), (test_icons), (main):
* src/xdgmime.c (xdg_mime_init_from_directory), (xdg_mime_init),
(xdg_mime_get_icon), (xdg_mime_get_generic_icon):
* src/xdgmime.h:
* src/xdgmimecache.c (cache_lookup_icon),
(_xdg_mime_cache_get_generic_icon), (_xdg_mime_cache_get_icon):
* src/xdgmimecache.h:
* src/xdgmimeicon.c:
* src/xdgmimeicon.h: Patch from Matthias Clasen
<mclasen@redhat.com>: Add icon and generic-icon support
2008-06-03 Bastien Nocera <hadess@hadess.net>
* src/xdgmimecache.c (cache_glob_lookup_file_name):
* src/xdgmimeglob.c (_xdg_glob_hash_insert_text),
(_xdg_glob_hash_lookup_file_name):
* src/xdgmimeint.c (_xdg_convert_to_ucs4), (_xdg_reverse_ucs4):
* src/xdgmimeint.h: Patch from Matthias Clasen
<mclasen@redhat.com>: Cleanups
2008-06-03 Bastien Nocera <hadess@hadess.net>
* src/xdgmimecache.c (cache_glob_node_lookup_suffix),
(cache_glob_lookup_suffix), (to_ucs4),
(cache_glob_lookup_file_name):
* src/xdgmimeglob.c (_xdg_glob_hash_insert_ucs4), (to_ucs4),
(ucs4_reverse), (_xdg_glob_hash_insert_text),
(_xdg_glob_hash_node_lookup_file_name),
(_xdg_glob_hash_lookup_file_name): Patch from Matthias Clasen
<mclasen@redhat.com>: Use reverted suffix trees
2008-06-03 Bastien Nocera <hadess@hadess.net>
* src/test-mime.c (test_subclassing), (test_one_match),
(test_matches), (main): Patch from Matthias Clasen
<mclasen@redhat.com>: Add some glob tests
2008-06-03 Bastien Nocera <hadess@hadess.net>
* src/xdgmime.c (xdg_mime_dump): Patch from Matthias Clasen
<mclasen@redhat.com>: Include globs in the dump
2008-06-03 Bastien Nocera <hadess@hadess.net>
* src/xdgmime.c (xdg_mime_init_from_directory):
* src/xdgmimecache.c (cache_glob_lookup_literal),
(cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
(cache_glob_lookup_suffix), (find_stopchars),
(compare_mime_weight), (cache_glob_lookup_file_name),
(_xdg_mime_cache_get_mime_type_for_file):
* src/xdgmimeglob.c (_xdg_glob_list_append),
(_xdg_glob_hash_node_dump), (_xdg_glob_hash_insert_text),
(_xdg_glob_hash_node_lookup_file_name), (compare_mime_weight),
(_xdg_glob_hash_lookup_file_name), (_xdg_glob_determine_type),
(_xdg_glob_hash_append_glob), (_xdg_glob_hash_dump),
(_xdg_mime_glob_read_from_file):
* src/xdgmimeglob.h: Patch from Matthias Clasen
<mclasen@redhat.com>: Implement glob weights
2008-06-03 Bastien Nocera <hadess@hadess.net>
* src/xdgmimeglob.c (_xdg_glob_hash_insert_text),
(_xdg_glob_hash_node_lookup_file_name), (_xdg_glob_determine_type),
(_xdg_mime_glob_read_from_file): Patch from Matthias Clasen
<mclasen@redhat.com>: remove dead code and some trivial cleanups
2008-06-02 Bastien Nocera <hadess@hadess.net>
* src/Makefile: Remove test-mime-data on clean
* src/test-mime-data.c (test_by_data): Fix for API changes below
* src/xdgmime.c (xdg_dir_time_list_add),
(xdg_mime_init_from_directory), (xdg_check_file), (xdg_check_dir),
(xdg_mime_get_mime_type_for_data),
(xdg_mime_get_mime_type_for_file),
(xdg_mime_get_mime_type_from_file_name),
(xdg_mime_get_mime_types_from_file_name), (xdg_mime_shutdown),
(xdg_mime_get_max_buffer_extents), (_xdg_mime_unalias_mime_type),
(xdg_mime_media_type_equal), (_xdg_mime_mime_type_subclass),
(xdg_mime_list_mime_parents):
* src/xdgmime.h:
* src/xdgmimealias.h:
* src/xdgmimecache.c (cache_magic_lookup_data),
(cache_alias_lookup), (cache_glob_lookup_literal),
(cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
(cache_glob_lookup_suffix), (find_stopchars),
(_xdg_mime_cache_get_max_buffer_extents),
(cache_get_mime_type_for_data),
(_xdg_mime_cache_get_mime_type_for_data),
(_xdg_mime_cache_get_mime_type_for_file),
(_xdg_mime_cache_get_mime_type_from_file_name),
(_xdg_mime_cache_get_mime_types_from_file_name),
(_xdg_mime_cache_mime_type_subclass),
(_xdg_mime_cache_list_mime_parents):
* src/xdgmimecache.h:
* src/xdgmimeglob.c (_xdg_glob_hash_node_lookup_file_name):
* src/xdgmimeglob.h:
* src/xdgmimemagic.c (_xdg_mime_magic_parse_magic_line),
(_xdg_mime_magic_lookup_data):
* src/xdgmimemagic.h:
* src/xdgmimeparent.h:
Merge from downstream changes in GIO/GTK+:
- Rename _xdg_mime_caches to _caches and make sure it's not exported
- Rework the timestamp checking code
to protect against duplicate directories in XDG_DATA_DIRS.
- Fix a thinko that leads to constantly reloading
the mime data if a mime.cache is present.
- Support more than 2 duplicate globs
- Add xdg_mime_get_mime_types_from_file_name()
- xdg_mime_media_type_equal() doesn't require an _init after all
- Handle super-types in _xdg_mime_mime_type_subclass()
- Make cache_get_mime_type_for_data() and
_xdg_mime_magic_lookup_data() return the priority of the
matching mime-type
- Fix _xdg_mime_cache_list_mime_parents returning duplicate parents in
some cases
2008-06-02 Bastien Nocera <hadess@hadess.net>
* src/xdgmime.c (xdg_mime_init_from_directory), (xdg_mime_dump):
* src/xdgmimecache.c (cache_glob_lookup_literal),
(cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
(cache_glob_lookup_suffix), (find_stopchars),
(cache_glob_lookup_file_name),
(_xdg_mime_cache_get_mime_type_for_file):
* src/xdgmimeglob.c (_xdg_glob_list_append),
(_xdg_glob_list_prepend), (_xdg_glob_hash_node_dump),
(_xdg_glob_hash_insert_text),
(_xdg_glob_hash_node_lookup_file_name),
(_xdg_glob_hash_lookup_file_name), (_xdg_glob_determine_type),
(_xdg_glob_hash_append_glob), (_xdg_glob_hash_dump),
(_xdg_mime_glob_read_from_file):
* src/xdgmimeglob.h: Revert previous patches, we need to rebase first
2008-06-02 Bastien Nocera <hadess@hadess.net>
* src/test-mime.c (test_subclassing), (test_one_match),
(test_matches), (main): Patch from Matthias Clasen
<mclasen@redhat.com> to add some globs tests to the
test program
2008-06-02 Bastien Nocera <hadess@hadess.net>
* src/xdgmime.c (xdg_mime_dump): Patch from Matthias Clasen
<mclasen@redhat.com> to include globs output in the dump
2008-06-02 Bastien Nocera <hadess@hadess.net>
* src/xdgmime.c (xdg_mime_init_from_directory):
* src/xdgmimecache.c (cache_glob_lookup_literal),
(cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
(cache_glob_lookup_suffix), (find_stopchars),
(compare_mime_weight), (cache_glob_lookup_file_name),
(_xdg_mime_cache_get_mime_type_for_file):
* src/xdgmimeglob.c (_xdg_glob_list_append),
(_xdg_glob_hash_node_dump), (_xdg_glob_hash_insert_text),
(_xdg_glob_hash_node_lookup_file_name), (compare_mime_weight),
(_xdg_glob_hash_lookup_file_name), (_xdg_glob_determine_type),
(_xdg_glob_hash_append_glob), (_xdg_glob_hash_dump),
(_xdg_mime_glob_read_from_file):
* src/xdgmimeglob.h: Patch from Matthias Clasen <mclasen@redhat.com>
to implement glob weights
2008-06-02 Bastien Nocera <hadess@hadess.net>
* src/xdgmimeglob.c (_xdg_glob_hash_insert_text),
(_xdg_glob_hash_node_lookup_file_name), (_xdg_glob_determine_type),
(_xdg_mime_glob_read_from_file): Patch from Matthias Clasen
<mclasen@redhat.com> to remove dead code and do some trivial changes
2008-04-18 Bastien Nocera <hadess@hadess.net>
* src/xdgmimecache.c (cache_magic_lookup_data),
(_xdg_mime_cache_mime_type_subclass): Fix possible crasher when
XDG_DATA_DIRS contains the same directory twice, patch by Joe Shaw
<joeshaw@novell.com> (#12512)
Make _xdg_mime_cache_mime_type_subclass use the internal version of
xdg_mime_media_type_equal(), spotted by Federico Mena-Quintero
<federico@ximian.com>
2008-04-10 Bastien Nocera <hadess@hadess.net>
* src/test-mime-data.c (main): Only error out when
the number of errors is different from the number of expected errors,
or when there's unexpected success
2007-08-28 Bastien Nocera <hadess@hadess.net>
* src/.cvsignore:
* src/Makefile:
* src/test-mime-data.c: Add test-mime-data test program from
Matthias Clasen <mclasen@redhat.com> (Closes: #5210)
2007-06-04 Christian Neumair <cneumair@gnome.org>
* src/xdgmime*.[ch]: Rename _caches to _xdg_mime_caches. Also
namespace all reserved symbols that are declared in headers using
XDG_RESERVED_ENTRY(), #7074 and #11124. Thanks to Yevgen Muntyan
<muntyan@tamu.edu> and Joe Marcus Clarke <marcus@freebsd.org>.
2007-06-02 Christian Neumair <cneumair@gnome.org>
* src/xdgmime.[ch]: Move xdg_mime_type_unknown to .rodata.
* src/xdgmime.h: Add XDG_ENTRY() entry for xdg_mime_dump.
GTK+ resync.
* src/xdgmime.c: (_xdg_mime_alias_list_lookup): Initialize mime_type
to NULL instead of 0, GNOME #341812. Thanks to Kjartan Maraas
<kmaraas@gnome.org>.
* src/xdgmime.[ch]: (xdg_mime_media_type_equal),
(_xdg_mime_media_type_equal): Add private version of
xdg_mime_media_type_equal that doesn't call xdg_mime_init(), use it in
_xdg_mime_mime_type_subclass.
2007-06-02 Christian Neumair <cneumair@gnome.org>
* src/xdgmimemagic.c: Fallback to getc() if getc_unlocked() is not
available, GNOME #381499. Thanks to Paul <ephraim_owns@hotmail.com>.
2007-06-01 Christian Neumair <cneumair@gnome.org>
* src/xdgmime.c: (xdg_mime_get_mime_type_for_file): Only request two
MIME types from cache.
* src/xdgmime.c: (xdg_mime_dump): Dump cache.
* src/xdgmimecache.c: Warn if building without MMAP support.
2007-06-01 Christian Neumair <cneumair@gnome.org>
* src/xdgmime.c: (xdg_lookup_cache_for_file), (xdg_check_dir):
Fix constant re-creation of memory MIME cache, #7495.
2007-06-01 Christian Neumair <cneumair@gnome.org>
* src/xdgmimeglob.c: (_xdg_glob_hash_node_lookup_file_name): Don't
return NULL MIME types, #5241.
2007-06-01 Christian Neumair <cneumair@gnome.org>
* src/xdgmime.c: (xdg_mime_shutdown): Fix cache variable name from last
commit.
* src/xdgmime.c: (xdg_mime_unalias_mime_type), (xdg_mime_mime_type_equal):
* src/xdgmime.h:
* src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data):
Define and use private versions of functions that may lead to an
xdg_mime_init() call and thus to an invalid cache, and a crash - #6824.
Thanks to Joe Shaw <joeshaw@novell.com>.
2007-06-01 Christian Neumair <cneumair@gnome.org>
* src/xdgmime.c: (xdg_mime_shutdown): Free caches, #7496.
Thanks to Yevgen Muntyan <muntyan@tamu.edu>.
2007-06-01 Christian Neumair <cneumair@gnome.org>
* src/xdgmimecache.c: (cache_glob_node_lookup_suffix): Don't return
MIME types if cache suffix lookup returns empty string, #9544.
Thanks to Yevgen Muntyan <muntyan@tamu.edu>.
2007-06-01 Christian Neumair <cneumair@gnome.org>
* src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): Fix issue where
MIME type was not detected when two MIME types with parent
relationship match and have equal priority, and child
was found before parent in cache, #9242.
Thanks to Tom Parker <freedesktop@tevp.net>.
2007-06-01 Christian Neumair <cneumair@gnome.org>
* src/xdgmimecache.c: (_xdg_mime_cache_list_mime_parents): Fix
several problems with this function, #9560. Thanks to Yevgen Muntyan.
2007-06-01 Christian Neumair <cneumair@gnome.org>
* src/xdgmimemagic.c: Don't declare errno, fixes build on Dragonfly
BSD, GNOME #336382.
2006-07-13 Christian Neumair <chris@gnome-de.org>
* src/xdgmimemagic.c: (_xdg_mime_magic_parse_magic_line):
Only declare 'i' #if LITTLE_ENDIAN. Partially fixes GNOME #340277.
Thanks to James Andrewartha.
2006-03-02 Christian Neumair <chris@gnome-de.org>
* src/xdgmimeglob.c: (_xdg_glob_hash_insert_text),
(_xdg_glob_hash_append_glob): Don't strdup the MIME type when passing
it to _xdg_glob_hash_insert_text, but let the function itself figure
out whether string duplication is needed. Fixes #5993.
Thanks to Martin Wehner.
2006-02-25 Christian Neumair <chris@gnome-de.org>
* src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): Make
priority equality check more robust so that it works for three or more
matches. Also allow matchlets with 0 priority.
2006-02-19 Christian Neumair <chris@gnome-de.org>
* src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): When two
unrelated MIME types with equal priorities match, don't assume one of
them matches.
http://bugzilla.gnome.org/show_bug.cgi?id=331719
2006-01-03 Christian Neumair <chris@gnome-de.org>
* src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): Also consider
match priority for the returned MIME type.
2005-12-01 Christian Neumair <chris@gnome-de.org>
* src/xdgmime.c: (xdg_mime_get_mime_type_from_file_name):
* src/xdgmimecache.c: (_xdg_mime_cache_get_mime_type_from_file_name):
Return XDG_MIME_TYPE_UNKNOWN if multiple MIME types match a simple
pattern.
2005-12-01 Matthias Clasen <mclasen@redhat.com>
* src/xdgmimecache.h:
* src/xdgmimecache.c (_xdg_mime_cache_get_mime_type_for_file):
Allow passing in a struct stat * to avoid re-stat()ing.
Forgotten commit from an earlier entry.
* src/xdgmimecache.c (cache_glob_lookup_literal):
(cache_glob_lookup_fnmatch):
(cache_glob_node_lookup_suffix): Change these functions to
allow returning more than one mime type if identical globs
match.
* src/xdgmimemagic.h:
* src/xdgmimeglob.h:
* src/xdgmimemagic.c (_xdg_mime_magic_lookup_data):
* src/xdgmimeglob.c (_xdg_glob_hash_lookup_file_name):
Change these functions to allow returning more than one
mime type if identical globs match.
* src/xdgmimecache.c (_xdg_mime_cache_get_mime_type_for_file):
* src/xdgmime.c (xdg_mime_get_mime_type_for_file):
If multiple identical globs match, use magic to disambiguate.
2005-11-04 Matthias Clasen <mclasen@redhat.com>
* xdgmime.c (xdg_mime_list_mime_parents): Prevent
a segfault.
2005-10-18 Matthias Clasen <mclasen@redhat.com>
* src/xdgmime.c:
* src/xdgmimecache.h:
* src/xdgmimecache.c: Make the array of caches NULL-terminated
and rename it to _caches. (#4011)
* src/xdgmime.h:
* src/xdgmime.c: Add a struct statbuf * argument to
xdg_mime_get_mime_type_for_file(). (#3529)
* src/test-mime.c: Adjust callers. Add License.
* src/xdgmimecache.c: Make magic comparisons work correctly.
Thu Jun 9 23:55:25 2005 Jonathan Blandford <jrb@redhat.com>
* src/xdgmime.c (xdg_mime_init_from_directory): patch from
federico to realloc the right size, #3506
2005-04-17 Christophe Fergeau <teuf@gnome.org>
* src/xdgmimeint.c: fix gcc4 signedness warning
2005-04-17 Christophe Fergeau <teuf@gnome.org>
* src/xdgmimemagic.c: (_xdg_mime_magic_matchlet_compare_to_data),
(_xdg_mime_magic_matchlet_compare_level),
(_xdg_mime_magic_lookup_data): when magic patterns matches, check if
there aren't subtypes with matching patterns too, and if so, favour
the subtype over the parent type, should fix #2686
2005-04-16 Christophe Fergeau <teuf@gnome.org>
* src/xdgmime.c: (xdg_mime_init_from_directory): fix leak when
mime.cache doesn't exist
2005-04-16 Christophe Fergeau <teuf@gnome.org>
* src/test-mime.c: (main): disabled call to xdg_mime_dump for now
* src/xdgmimemagic.c: (_xdg_mime_magic_matchlet_compare_to_data):
fixed off by 1 error when handling offsets, fixes bug #2050 and
partly bug #2359
Fri Apr 8 23:37:33 2005 Jonathan Blandford <jrb@redhat.com>
* src/xdgmimecache.c: Actually add the file. Also, patch from
Matthias Clasen <mclasen@redhat.com> to fix small bugs, #2939
Fri Apr 1 14:59:43 2005 Jonathan Blandford <jrb@redhat.com>
* src/xdgmimecache.c: Patch from Matthias Clasen to mmap the
cached xdg file.
Mon Mar 28 13:58:32 2005 Jonathan Blandford <jrb@redhat.com>
* src/xdgmimeglob.c (_xdg_glob_hash_insert_text): patch from
Matthias Clasen to handle globs that don't have '.' chars in
them. As an example 'foo~' should match '*~'
Mon Mar 21 13:16:12 2005 Jonathan Blandford <jrb@redhat.com>
* src/xdgmime.c (xdg_mime_shutdown): fix from Axel Liljencrantz
<f97-ali@nada.kth.se> to free parent_list in shutdown.
2005-01-10 Christophe Fergeau <teuf@gnome.org>
* src/xdgmimeglob.c: (_xdg_glob_hash_lookup_file_name): make previous
commit actually work...
2005-01-10 Christophe Fergeau <teuf@gnome.org>
* src/xdgmimeglob.c: (_xdg_glob_hash_lookup_file_name): don't get
confused by multiple dots in filenames when doing extension matching
2004-12-13 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmime.h:
wrap new API in XDG_ENTRY()
2004-12-13 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmimeglob.c: (_xdg_glob_hash_lookup_file_name):
Do not assume the filename is UTF8. We just need to look
for the dot which is ASCII.
2004-12-09 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmimeint.h:
Remove spacings I introduced by mistake
2004-12-09 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmimealias.c: (_xdg_mime_alias_read_from_file):
* src/xdgmimeint.c: (_xdg_ucs4_to_lower):
* src/xdgmimeint.h:
* src/xdgmimeparent.c: (_xdg_mime_parent_read_from_file):
Check in Mariano Suárez-Alvarez <msuarezalvarez@arnet.com.ar> patch
for GNOME bug #160838.
2004-12-09 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmimeglob.c: (_xdg_glob_hash_node_lookup_file_name):
* src/xdgmimeint.c: (_xdg_ucs4_to_lower):
* src/xdgmimeint.h:
Follow the freedesktop spec about case sensitiveness. Fix #732
2004-12-08 Christophe Fergeau <teuf@gnome.org>
* src/xdgmimeglob.c: (_xdg_mime_glob_read_from_file): backing out
"fix" for bug #1048 since it frees memory that shouldn't be freed.
2004-12-08 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmimemagic.c: (_xdg_mime_magic_read_from_file):
Check that fread succeeded reading all chars. Fix #1049
2004-12-08 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmime.c:
* src/xdgmimealias.c:
* src/xdgmimeglob.c:
* src/xdgmimeint.c:
* src/xdgmimemagic.c:
* src/xdgmimeparent.c:
Include config.h. Fix #913
2004-12-08 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmimealias.c: (_xdg_mime_alias_list_lookup):
Fix a typo
2004-12-08 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmime.c: (xdg_mime_unalias_mime_type),
(xdg_mime_mime_type_equal), (xdg_mime_mime_type_subclass),
(xdg_mime_get_mime_parents):
* src/xdgmime.h:
Add apis to get parents and to unalias mime type
2004-12-08 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmimealias.c: (_xdg_mime_alias_list_lookup):
* src/xdgmimeparent.c: (_xdg_mime_parent_list_lookup):
Protect against stupid bsearch() implementations. (#1961,
Morten Welinder)
2004-12-08 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmimeparent.c: (_xdg_mime_parent_read_from_file):
Initialize the parent field of the newly allocate list
entry. (#1916, Alex Larsson)
2004-12-08 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmimeglob.c: (_xdg_mime_glob_read_from_file):
Patch from Matthias Clasen <mclasen@redhat.com> to fix
a mem leak. Bug #1048
2004-12-08 Marco Pesenti Gritti <marco@gnome.org>
* src/xdgmimeglob.h:
Patch from Michael.Wilson@bull.net to fix compile error on AIX
Sun Nov 7 02:25:21 2004 Jonathan Blandford <jrb@redhat.com>
* src/xdgmime.h: Patch from Matthias Clasen <mclasen@redhat.com>
to add alias and inheritence support.
2004-09-16 Christophe Fergeau <teuf@gnome.org>
* src/xdgmimeglob.c: (_xdg_glob_hash_free_nodes):
* src/xdgmimemagic.c: (_xdg_mime_magic_free): fix memory leaks,
fixes http://bugzilla.gnome.org/show_bug.cgi?id=152771 and
http://bugzilla.gnome.org/show_bug.cgi?id=152768
Mon Jul 19 00:23:00 2004 Jonathan Blandford <jrb@gnome.org>
* src/xdgmime.c (xdg_mime_register_reload_callback): register a
callback when we reload MIME data.
* src/xdgmime.c (xdg_mime_remove_callback): Add capability to
remove callback.
Sun Jul 18 20:56:22 2004 Jonathan Blandford <jrb@gnome.org>
* src/xdgmime.c (xdg_mime_shutdown):
(xdg_mime_init): reread data when it changes on disk.
Thu May 27 16:18:14 2004 Jonathan Blandford <jrb@gnome.org>
* src/xdgmime.h: move xdg_mime_shutdown into the XDG_ENTRY guard.
Thu May 27 15:02:13 2004 Jonathan Blandford <jrb@gnome.org>
* src/xdgmimemagic.c (_xdg_mime_magic_read_magic_file): patch from
Hongli Lai <h.lai@chello.nl> to catch magic files that don't end
with a '\n'.
Fri Apr 30 11:56:01 2004 Jonathan Blandford <jrb@gnome.org>
* src/xdgmimemagic.c (_xdg_mime_magic_read_a_number): make the
buffer the right size. Reported by Morten Welinder, #136323
Sun Mar 21 23:56:46 2004 Jonathan Blandford <jrb@gnome.org>
* src/xdgmimemagic.c: Patch from Arjan van de Ven
<arjanv@redhat.com> to do s/fgetc/getc_unlocked/g.
Wed Mar 10 22:28:41 2004 Jonathan Blandford <jrb@gnome.org>
* src/xdgmimemagic.c (_xdg_mime_magic_read_a_number): fix usage of
isdigit. Reported by Morten Welinder, #136323
* src/xdgmimemagic.c (_xdg_mime_magic_read_magic_file): patch from
Christophe Fergeau to reverse the order of the matchlet before
adding it to the list.
* src/xdgmimeint.h (_xdg_utf8_skip): patch from Alexander Larsson
to make extern.
Wed Jan 21 09:29:41 2004 Jonathan Blandford <jrb@gnome.org>
* src/xdgmimemagic.c (_xdg_mime_magic_insert_match): dropped
patches. Fix.
* src/xdgmimeglob.c (_xdg_glob_hash_free_nodes): dropped patches.
Fix.
Tue Jan 20 14:55:39 2004 Jonathan Blandford <jrb@gnome.org>
* src/xdgmime.h (XDG_MIME_TYPE_UNKNOWN): move the definition so
that it catches the XDG_ENTRY mangling.
* src/xdgmimemagic.c: make some functions static
Tue Jan 20 14:34:26 2004 Jonathan Blandford <jrb@gnome.org>
* src/xdgmime.c (xdg_mime_get_max_buffer_extents): add function so
that it's easy to get the max buffer extents.
Tue Jan 20 12:55:55 2004 Jonathan Blandford <jrb@gnome.org>
* src/Makefile: Test prefix code
* src/xdgmime*.h: Fully use the prefix code
* src/xdgmime.c: finish the syncing from both GTK+ and gnome-vfs.
Tue Jan 13 16:21:04 2004 Jonathan Blandford <jrb@gnome.org>
* src/xdgmime.[ch] (XDG_MIME_TYPE_UNKNOWN): make an extern const
char * so that comparisons can work.
* src/xdgmimeint.c (_xdg_utf8_to_ucs4): patch from Dave Jones
<davej@redhat.com> to make operations more explicit.
Tue Oct 28 15:09:06 2003 Jonathan Blandford <jrb@redhat.com>
* README: Add a readme, and clarify the licensing terms of the
software.
Tue Oct 28 14:47:37 2003 Jonathan Blandford <jrb@redhat.com>
* src/xdgmime.c (xdg_mime_shutdown): implement shutdown. This
frees all memory and resets to an uninitialized state as best as
possible.
Mon Oct 27 11:45:58 2003 Jonathan Blandford <jrb@redhat.com>
* src/xdgmimemagic.c (_xdg_mime_magic_read_a_number): strtol
returns a long, not an int. Thanks to Manish Singh for pointing
this out.
* src/xdgmimemagic.c (_xdg_mime_magic_parse_magic_line): change
assertion to avoid a warning.
Tue Oct 21 15:56:55 2003 Jonathan Blandford <jrb@gnome.org>
* Makefile: add a simple makefile
* src/Makefile: ditto
Tue Jul 22 15:37:45 2003 Jonathan Blandford <jrb@gnome.org>
* xdgmime/xdgmime.c (xdg_mime_init): use XDG_DATA_HOME instead of
XDG_CONFIG_HOME.