2009-10-02 Alexander Larsson <alexl@redhat.com>
[rox-filer.git] / ChangeLog
blobc4666eee0d592aec155328900f68b1f0127fa8e8
1 2009-10-02  Alexander Larsson  <alexl@redhat.com>
3         * src/xdgmimecache.c: (cache_glob_lookup_literal),
4         (cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
5         (cache_glob_lookup_suffix), (ascii_tolower),
6         (cache_glob_lookup_file_name):
7         * src/xdgmimeglob.c: (_xdg_glob_list_append),
8         (_xdg_glob_hash_insert_ucs4), (_xdg_glob_hash_insert_text),
9         (_xdg_glob_hash_node_lookup_file_name), (ascii_tolower),
10         (_xdg_glob_hash_lookup_file_name), (_xdg_glob_hash_append_glob):
11         Support the case-sensitive attribute
13 2009-10-02  Alexander Larsson  <alexl@redhat.com>
15         * src/xdgmimecache.c: (_xdg_mime_cache_new_from_file):
16         Support reading cache files with minor number 2
18 2009-10-02  Alexander Larsson  <alexl@redhat.com>
20         * src/xdgmime.c: (xdg_mime_init_from_directory):
21         * src/xdgmimeglob.c: (_xdg_glob_hash_append_glob),
22         (_xdg_mime_glob_read_from_file):
23         * src/xdgmimeglob.h:
24         Read the new updated glob2 format with flags
26 2009-03-09  Bastien Nocera  <hadess@hadess.net>
28         * src/test-mime.c (test_one_icon): Fix possible
29         crash when xdg_mime_get_icon() returns NULL, spotted by
30         Sanel Zukan <sanelz@gmail.com> (Closes: #20555)
32 2009-01-08  Bastien Nocera  <hadess@hadess.net>
34         * src/xdgmime.c (xdg_mime_shutdown): Patch from
35         Carlos Garcia Campos <carlosgc@gnome.org> to
36         fix a memory leak on shutdown (Closes: #16972)
38 2008-09-27  Bastien Nocera  <hadess@hadess.net>
40         * src/xdgmime.c (xdg_dir_time_list_add): Patch from
41         Christian Persch, closing a memleak (Closes: #17464)
43 2008-06-09  Bastien Nocera  <hadess@hadess.net>
45         * src/xdgmimecache.c (cache_glob_node_lookup_suffix):
46         Patch by Matthias Clasen <mclasen@redhat.com> to implement
47         the compact suffix tree
49 2008-06-05  Bastien Nocera  <hadess@hadess.net>
51         * src/xdgmimecache.c (cache_glob_node_lookup_suffix):
52         Patch by Matthias Clasen <mclasen@redhat.com> to fix reading
53         the suffix lookup (wrong offsets when reading the mime-type
54         offset and weight)
56 2008-06-03  Bastien Nocera  <hadess@hadess.net>
58         * src/xdgmime.c (xdg_mime_dump):
59         * src/xdgmimecache.c (cache_glob_node_lookup_suffix),
60         (dump_glob_node), (_xdg_mime_cache_glob_dump):
61         * src/xdgmimecache.h: dumping code for the suffix reverse tree
62         from Matthias Clasen <mclasen@redhat.com>, and hooked up in
63         xdg_mime_dump, init the cache in xdg_mime_dump() in case
64         it's the only xdgmime function called
66 2008-06-03  Bastien Nocera  <hadess@hadess.net>
68         * src/xdgmimecache.c: Patch from Matthias Clasen
69         <mclasen@redhat.com>: Bump the cache version to 1.1
71 2008-06-03  Bastien Nocera  <hadess@hadess.net>
73         * src/Makefile:
74         * src/test-mime.c (test_one_icon), (test_icons), (main):
75         * src/xdgmime.c (xdg_mime_init_from_directory), (xdg_mime_init),
76         (xdg_mime_get_icon), (xdg_mime_get_generic_icon):
77         * src/xdgmime.h:
78         * src/xdgmimecache.c (cache_lookup_icon),
79         (_xdg_mime_cache_get_generic_icon), (_xdg_mime_cache_get_icon):
80         * src/xdgmimecache.h:
81         * src/xdgmimeicon.c:
82         * src/xdgmimeicon.h: Patch from Matthias Clasen
83         <mclasen@redhat.com>: Add icon and generic-icon support
85 2008-06-03  Bastien Nocera  <hadess@hadess.net>
87         * src/xdgmimecache.c (cache_glob_lookup_file_name):
88         * src/xdgmimeglob.c (_xdg_glob_hash_insert_text),
89         (_xdg_glob_hash_lookup_file_name):
90         * src/xdgmimeint.c (_xdg_convert_to_ucs4), (_xdg_reverse_ucs4):
91         * src/xdgmimeint.h: Patch from Matthias Clasen
92         <mclasen@redhat.com>: Cleanups
94 2008-06-03  Bastien Nocera  <hadess@hadess.net>
96         * src/xdgmimecache.c (cache_glob_node_lookup_suffix),
97         (cache_glob_lookup_suffix), (to_ucs4),
98         (cache_glob_lookup_file_name):
99         * src/xdgmimeglob.c (_xdg_glob_hash_insert_ucs4), (to_ucs4),
100         (ucs4_reverse), (_xdg_glob_hash_insert_text),
101         (_xdg_glob_hash_node_lookup_file_name),
102         (_xdg_glob_hash_lookup_file_name): Patch from Matthias Clasen
103         <mclasen@redhat.com>: Use reverted suffix trees
105 2008-06-03  Bastien Nocera  <hadess@hadess.net>
107         * src/test-mime.c (test_subclassing), (test_one_match),
108         (test_matches), (main): Patch from Matthias Clasen
109         <mclasen@redhat.com>: Add some glob tests
111 2008-06-03  Bastien Nocera  <hadess@hadess.net>
113         * src/xdgmime.c (xdg_mime_dump): Patch from Matthias Clasen
114         <mclasen@redhat.com>: Include globs in the dump
116 2008-06-03  Bastien Nocera  <hadess@hadess.net>
118         * src/xdgmime.c (xdg_mime_init_from_directory):
119         * src/xdgmimecache.c (cache_glob_lookup_literal),
120         (cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
121         (cache_glob_lookup_suffix), (find_stopchars),
122         (compare_mime_weight), (cache_glob_lookup_file_name),
123         (_xdg_mime_cache_get_mime_type_for_file):
124         * src/xdgmimeglob.c (_xdg_glob_list_append),
125         (_xdg_glob_hash_node_dump), (_xdg_glob_hash_insert_text),
126         (_xdg_glob_hash_node_lookup_file_name), (compare_mime_weight),
127         (_xdg_glob_hash_lookup_file_name), (_xdg_glob_determine_type),
128         (_xdg_glob_hash_append_glob), (_xdg_glob_hash_dump),
129         (_xdg_mime_glob_read_from_file):
130         * src/xdgmimeglob.h: Patch from Matthias Clasen
131         <mclasen@redhat.com>: Implement glob weights
133 2008-06-03  Bastien Nocera  <hadess@hadess.net>
135         * src/xdgmimeglob.c (_xdg_glob_hash_insert_text),
136         (_xdg_glob_hash_node_lookup_file_name), (_xdg_glob_determine_type),
137         (_xdg_mime_glob_read_from_file): Patch from Matthias Clasen
138         <mclasen@redhat.com>: remove dead code and some trivial cleanups
140 2008-06-02  Bastien Nocera  <hadess@hadess.net>
142         * src/Makefile: Remove test-mime-data on clean
143         * src/test-mime-data.c (test_by_data): Fix for API changes below
145         * src/xdgmime.c (xdg_dir_time_list_add),
146         (xdg_mime_init_from_directory), (xdg_check_file), (xdg_check_dir),
147         (xdg_mime_get_mime_type_for_data),
148         (xdg_mime_get_mime_type_for_file),
149         (xdg_mime_get_mime_type_from_file_name),
150         (xdg_mime_get_mime_types_from_file_name), (xdg_mime_shutdown),
151         (xdg_mime_get_max_buffer_extents), (_xdg_mime_unalias_mime_type),
152         (xdg_mime_media_type_equal), (_xdg_mime_mime_type_subclass),
153         (xdg_mime_list_mime_parents):
154         * src/xdgmime.h:
155         * src/xdgmimealias.h:
156         * src/xdgmimecache.c (cache_magic_lookup_data),
157         (cache_alias_lookup), (cache_glob_lookup_literal),
158         (cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
159         (cache_glob_lookup_suffix), (find_stopchars),
160         (_xdg_mime_cache_get_max_buffer_extents),
161         (cache_get_mime_type_for_data),
162         (_xdg_mime_cache_get_mime_type_for_data),
163         (_xdg_mime_cache_get_mime_type_for_file),
164         (_xdg_mime_cache_get_mime_type_from_file_name),
165         (_xdg_mime_cache_get_mime_types_from_file_name),
166         (_xdg_mime_cache_mime_type_subclass),
167         (_xdg_mime_cache_list_mime_parents):
168         * src/xdgmimecache.h:
169         * src/xdgmimeglob.c (_xdg_glob_hash_node_lookup_file_name):
170         * src/xdgmimeglob.h:
171         * src/xdgmimemagic.c (_xdg_mime_magic_parse_magic_line),
172         (_xdg_mime_magic_lookup_data):
173         * src/xdgmimemagic.h:
174         * src/xdgmimeparent.h:
176         Merge from downstream changes in GIO/GTK+:
177         - Rename _xdg_mime_caches to _caches and make sure it's not exported
178         - Rework the timestamp checking code
179         to protect against duplicate directories in XDG_DATA_DIRS.
180         - Fix a thinko that leads to constantly reloading
181         the mime data if a mime.cache is present.
182         - Support more than 2 duplicate globs
183         - Add xdg_mime_get_mime_types_from_file_name()
184         - xdg_mime_media_type_equal() doesn't require an _init after all
185         - Handle super-types in _xdg_mime_mime_type_subclass()
186         - Make cache_get_mime_type_for_data() and
187         _xdg_mime_magic_lookup_data() return the priority of the
188         matching mime-type
189         - Fix _xdg_mime_cache_list_mime_parents returning duplicate parents in
190         some cases
192 2008-06-02  Bastien Nocera  <hadess@hadess.net>
194         * src/xdgmime.c (xdg_mime_init_from_directory), (xdg_mime_dump):
195         * src/xdgmimecache.c (cache_glob_lookup_literal),
196         (cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
197         (cache_glob_lookup_suffix), (find_stopchars),
198         (cache_glob_lookup_file_name),
199         (_xdg_mime_cache_get_mime_type_for_file):
200         * src/xdgmimeglob.c (_xdg_glob_list_append),
201         (_xdg_glob_list_prepend), (_xdg_glob_hash_node_dump),
202         (_xdg_glob_hash_insert_text),
203         (_xdg_glob_hash_node_lookup_file_name),
204         (_xdg_glob_hash_lookup_file_name), (_xdg_glob_determine_type),
205         (_xdg_glob_hash_append_glob), (_xdg_glob_hash_dump),
206         (_xdg_mime_glob_read_from_file):
207         * src/xdgmimeglob.h: Revert previous patches, we need to rebase first
209 2008-06-02  Bastien Nocera  <hadess@hadess.net>
211         * src/test-mime.c (test_subclassing), (test_one_match),
212         (test_matches), (main): Patch from Matthias Clasen
213         <mclasen@redhat.com> to add some globs tests to the
214         test program
216 2008-06-02  Bastien Nocera  <hadess@hadess.net>
218         * src/xdgmime.c (xdg_mime_dump): Patch from Matthias Clasen
219         <mclasen@redhat.com> to include globs output in the dump
221 2008-06-02  Bastien Nocera  <hadess@hadess.net>
223         * src/xdgmime.c (xdg_mime_init_from_directory):
224         * src/xdgmimecache.c (cache_glob_lookup_literal),
225         (cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
226         (cache_glob_lookup_suffix), (find_stopchars),
227         (compare_mime_weight), (cache_glob_lookup_file_name),
228         (_xdg_mime_cache_get_mime_type_for_file):
229         * src/xdgmimeglob.c (_xdg_glob_list_append),
230         (_xdg_glob_hash_node_dump), (_xdg_glob_hash_insert_text),
231         (_xdg_glob_hash_node_lookup_file_name), (compare_mime_weight),
232         (_xdg_glob_hash_lookup_file_name), (_xdg_glob_determine_type),
233         (_xdg_glob_hash_append_glob), (_xdg_glob_hash_dump),
234         (_xdg_mime_glob_read_from_file):
235         * src/xdgmimeglob.h: Patch from Matthias Clasen <mclasen@redhat.com>
236         to implement glob weights
238 2008-06-02  Bastien Nocera  <hadess@hadess.net>
240         * src/xdgmimeglob.c (_xdg_glob_hash_insert_text),
241         (_xdg_glob_hash_node_lookup_file_name), (_xdg_glob_determine_type),
242         (_xdg_mime_glob_read_from_file): Patch from Matthias Clasen
243         <mclasen@redhat.com> to remove dead code and do some trivial changes
245 2008-04-18  Bastien Nocera  <hadess@hadess.net>
247         * src/xdgmimecache.c (cache_magic_lookup_data),
248         (_xdg_mime_cache_mime_type_subclass): Fix possible crasher when
249         XDG_DATA_DIRS contains the same directory twice, patch by Joe Shaw
250         <joeshaw@novell.com> (#12512)
252         Make _xdg_mime_cache_mime_type_subclass use the internal version of
253         xdg_mime_media_type_equal(), spotted by Federico Mena-Quintero
254         <federico@ximian.com>
256 2008-04-10  Bastien Nocera  <hadess@hadess.net>
258         * src/test-mime-data.c (main): Only error out when
259         the number of errors is different from the number of expected errors,
260         or when there's unexpected success
262 2007-08-28  Bastien Nocera  <hadess@hadess.net>
264         * src/.cvsignore:
265         * src/Makefile:
266         * src/test-mime-data.c: Add test-mime-data test program from
267         Matthias Clasen <mclasen@redhat.com> (Closes: #5210)
269 2007-06-04  Christian Neumair  <cneumair@gnome.org>
271         * src/xdgmime*.[ch]: Rename _caches to _xdg_mime_caches. Also
272         namespace all reserved symbols that are declared in headers using
273         XDG_RESERVED_ENTRY(), #7074 and #11124. Thanks to Yevgen Muntyan
274         <muntyan@tamu.edu> and Joe Marcus Clarke <marcus@freebsd.org>.
276 2007-06-02  Christian Neumair  <cneumair@gnome.org>
278         * src/xdgmime.[ch]: Move xdg_mime_type_unknown to .rodata.
279         * src/xdgmime.h: Add XDG_ENTRY() entry for xdg_mime_dump.
280         GTK+ resync.
282         * src/xdgmime.c: (_xdg_mime_alias_list_lookup): Initialize mime_type
283         to NULL instead of 0, GNOME #341812. Thanks to Kjartan Maraas
284         <kmaraas@gnome.org>.
286         * src/xdgmime.[ch]: (xdg_mime_media_type_equal),
287         (_xdg_mime_media_type_equal): Add private version of
288         xdg_mime_media_type_equal that doesn't call xdg_mime_init(), use it in
289         _xdg_mime_mime_type_subclass.
291 2007-06-02  Christian Neumair  <cneumair@gnome.org>
293         * src/xdgmimemagic.c: Fallback to getc() if getc_unlocked() is not
294         available, GNOME #381499. Thanks to Paul <ephraim_owns@hotmail.com>.
296 2007-06-01  Christian Neumair  <cneumair@gnome.org>
298         * src/xdgmime.c: (xdg_mime_get_mime_type_for_file): Only request two
299         MIME types from cache.
301         * src/xdgmime.c: (xdg_mime_dump): Dump cache.
303         * src/xdgmimecache.c: Warn if building without MMAP support.
305 2007-06-01  Christian Neumair  <cneumair@gnome.org>
307         * src/xdgmime.c: (xdg_lookup_cache_for_file), (xdg_check_dir):
308         Fix constant re-creation of memory MIME cache, #7495.
310 2007-06-01  Christian Neumair  <cneumair@gnome.org>
312         * src/xdgmimeglob.c: (_xdg_glob_hash_node_lookup_file_name): Don't
313         return NULL MIME types, #5241.
315 2007-06-01  Christian Neumair  <cneumair@gnome.org>
317         * src/xdgmime.c: (xdg_mime_shutdown): Fix cache variable name from last
318         commit.
320         * src/xdgmime.c: (xdg_mime_unalias_mime_type), (xdg_mime_mime_type_equal):
321         * src/xdgmime.h:
322         * src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data):
323         Define and use private versions of functions that may lead to an
324         xdg_mime_init() call and thus to an invalid cache, and a crash - #6824.
325         Thanks to Joe Shaw <joeshaw@novell.com>.
327 2007-06-01  Christian Neumair  <cneumair@gnome.org>
329         * src/xdgmime.c: (xdg_mime_shutdown): Free caches, #7496.
330         Thanks to Yevgen Muntyan <muntyan@tamu.edu>.
332 2007-06-01  Christian Neumair  <cneumair@gnome.org>
334         * src/xdgmimecache.c: (cache_glob_node_lookup_suffix): Don't return
335         MIME types if cache suffix lookup returns empty string, #9544.
336         Thanks to Yevgen Muntyan <muntyan@tamu.edu>.
338 2007-06-01  Christian Neumair  <cneumair@gnome.org>
340         * src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): Fix issue where
341         MIME type was not detected when two MIME types with parent
342         relationship match and have equal priority, and child
343         was found before parent in cache, #9242.
344         Thanks to Tom Parker <freedesktop@tevp.net>.
346 2007-06-01  Christian Neumair  <cneumair@gnome.org>
348         * src/xdgmimecache.c: (_xdg_mime_cache_list_mime_parents): Fix
349         several problems with this function, #9560. Thanks to Yevgen Muntyan.
351 2007-06-01  Christian Neumair  <cneumair@gnome.org>
353         * src/xdgmimemagic.c: Don't declare errno, fixes build on Dragonfly
354         BSD, GNOME #336382.
356 2006-07-13  Christian Neumair  <chris@gnome-de.org>
358         * src/xdgmimemagic.c: (_xdg_mime_magic_parse_magic_line):
359         Only declare 'i' #if LITTLE_ENDIAN. Partially fixes GNOME #340277.
360         Thanks to James Andrewartha.
362 2006-03-02  Christian Neumair  <chris@gnome-de.org>
364         * src/xdgmimeglob.c: (_xdg_glob_hash_insert_text),
365         (_xdg_glob_hash_append_glob): Don't strdup the MIME type when passing
366         it to _xdg_glob_hash_insert_text, but let the function itself figure
367         out whether string duplication is needed. Fixes #5993.
368         Thanks to Martin Wehner.
370 2006-02-25  Christian Neumair  <chris@gnome-de.org>
372         * src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): Make
373         priority equality check more robust so that it works for three or more
374         matches. Also allow matchlets with 0 priority.
376 2006-02-19  Christian Neumair  <chris@gnome-de.org>
378         * src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): When two
379         unrelated MIME types with equal priorities match, don't assume one of
380         them matches.
381         http://bugzilla.gnome.org/show_bug.cgi?id=331719
383 2006-01-03  Christian Neumair  <chris@gnome-de.org>
385         * src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): Also consider
386         match priority for the returned MIME type.
388 2005-12-01  Christian Neumair  <chris@gnome-de.org>
390         * src/xdgmime.c: (xdg_mime_get_mime_type_from_file_name):
391         * src/xdgmimecache.c: (_xdg_mime_cache_get_mime_type_from_file_name):
392         Return XDG_MIME_TYPE_UNKNOWN if multiple MIME types match a simple
393         pattern.
395 2005-12-01  Matthias Clasen  <mclasen@redhat.com>
397         * src/xdgmimecache.h:
398         * src/xdgmimecache.c (_xdg_mime_cache_get_mime_type_for_file): 
399         Allow passing in a struct stat * to avoid re-stat()ing. 
400         Forgotten commit from an earlier entry.
402         * src/xdgmimecache.c (cache_glob_lookup_literal):
403         (cache_glob_lookup_fnmatch):
404         (cache_glob_node_lookup_suffix): Change these functions to
405         allow returning more than one mime type if identical globs
406         match.
408         * src/xdgmimemagic.h: 
409         * src/xdgmimeglob.h: 
410         * src/xdgmimemagic.c (_xdg_mime_magic_lookup_data): 
411         * src/xdgmimeglob.c (_xdg_glob_hash_lookup_file_name): 
412         Change these functions to allow returning more than one
413         mime type if identical globs match.
414         
415         * src/xdgmimecache.c (_xdg_mime_cache_get_mime_type_for_file): 
416         * src/xdgmime.c (xdg_mime_get_mime_type_for_file): 
417         If multiple identical globs match, use magic to disambiguate.
418         
419 2005-11-04  Matthias Clasen  <mclasen@redhat.com>
421         * xdgmime.c (xdg_mime_list_mime_parents): Prevent
422         a segfault.
424 2005-10-18  Matthias Clasen  <mclasen@redhat.com>
425         
426         * src/xdgmime.c:
427         * src/xdgmimecache.h:
428         * src/xdgmimecache.c: Make the array of caches NULL-terminated
429         and rename it to _caches.  (#4011)
431         * src/xdgmime.h:
432         * src/xdgmime.c: Add a struct statbuf * argument to 
433         xdg_mime_get_mime_type_for_file().  (#3529)
435         * src/test-mime.c: Adjust callers. Add License.
437         * src/xdgmimecache.c: Make magic comparisons work correctly.
439 Thu Jun  9 23:55:25 2005  Jonathan Blandford  <jrb@redhat.com>
441         * src/xdgmime.c (xdg_mime_init_from_directory): patch from
442         federico to realloc the right size, #3506
444 2005-04-17  Christophe Fergeau  <teuf@gnome.org>
446         * src/xdgmimeint.c: fix gcc4 signedness warning
448 2005-04-17  Christophe Fergeau  <teuf@gnome.org>
450         * src/xdgmimemagic.c: (_xdg_mime_magic_matchlet_compare_to_data),
451         (_xdg_mime_magic_matchlet_compare_level),
452         (_xdg_mime_magic_lookup_data): when  magic patterns matches, check if
453         there aren't subtypes with matching patterns too, and if so, favour
454         the subtype over the parent type, should fix #2686
456 2005-04-16  Christophe Fergeau  <teuf@gnome.org>
458         * src/xdgmime.c: (xdg_mime_init_from_directory): fix leak when
459         mime.cache doesn't exist
461 2005-04-16  Christophe Fergeau  <teuf@gnome.org>
463         * src/test-mime.c: (main): disabled call to xdg_mime_dump for now
464         * src/xdgmimemagic.c: (_xdg_mime_magic_matchlet_compare_to_data):
465         fixed off by 1 error when handling offsets, fixes bug #2050 and 
466         partly bug #2359
468 Fri Apr  8 23:37:33 2005  Jonathan Blandford  <jrb@redhat.com>
470         * src/xdgmimecache.c: Actually add the file.  Also, patch from
471         Matthias Clasen <mclasen@redhat.com> to fix small bugs, #2939
473 Fri Apr  1 14:59:43 2005  Jonathan Blandford  <jrb@redhat.com>
475         * src/xdgmimecache.c: Patch from Matthias Clasen to mmap the
476         cached xdg file.
478 Mon Mar 28 13:58:32 2005  Jonathan Blandford  <jrb@redhat.com>
480         * src/xdgmimeglob.c (_xdg_glob_hash_insert_text): patch from
481         Matthias Clasen to handle globs that don't have '.' chars in
482         them.  As an example 'foo~' should match '*~'
484 Mon Mar 21 13:16:12 2005  Jonathan Blandford  <jrb@redhat.com>
486         * src/xdgmime.c (xdg_mime_shutdown): fix from  Axel Liljencrantz
487         <f97-ali@nada.kth.se> to free parent_list in shutdown.
489 2005-01-10  Christophe Fergeau  <teuf@gnome.org>
491         * src/xdgmimeglob.c: (_xdg_glob_hash_lookup_file_name): make previous
492         commit actually work...
494 2005-01-10  Christophe Fergeau  <teuf@gnome.org>
496         * src/xdgmimeglob.c: (_xdg_glob_hash_lookup_file_name): don't get
497         confused by multiple dots in filenames when doing extension matching
499 2004-12-13  Marco Pesenti Gritti  <marco@gnome.org>
501         * src/xdgmime.h:
503          wrap new API in XDG_ENTRY()
505 2004-12-13  Marco Pesenti Gritti  <marco@gnome.org>
507         * src/xdgmimeglob.c: (_xdg_glob_hash_lookup_file_name):
509         Do not assume the filename is UTF8. We just need to look
510         for the dot which is ASCII.
512 2004-12-09  Marco Pesenti Gritti  <marco@gnome.org>
514         * src/xdgmimeint.h:
516         Remove spacings I introduced by mistake
518 2004-12-09  Marco Pesenti Gritti  <marco@gnome.org>
520         * src/xdgmimealias.c: (_xdg_mime_alias_read_from_file):
521         * src/xdgmimeint.c: (_xdg_ucs4_to_lower):
522         * src/xdgmimeint.h:
523         * src/xdgmimeparent.c: (_xdg_mime_parent_read_from_file):
525         Check in Mariano Suárez-Alvarez <msuarezalvarez@arnet.com.ar> patch
526         for GNOME bug #160838.
528 2004-12-09  Marco Pesenti Gritti  <marco@gnome.org>
530         * src/xdgmimeglob.c: (_xdg_glob_hash_node_lookup_file_name):
531         * src/xdgmimeint.c: (_xdg_ucs4_to_lower):
532         * src/xdgmimeint.h:
534         Follow the freedesktop spec about case sensitiveness. Fix #732
536 2004-12-08  Christophe Fergeau  <teuf@gnome.org>
538         * src/xdgmimeglob.c: (_xdg_mime_glob_read_from_file): backing out
539         "fix" for bug #1048 since it frees memory that shouldn't be freed.
541 2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>
543         * src/xdgmimemagic.c: (_xdg_mime_magic_read_from_file):
545         Check that fread succeeded reading all chars. Fix #1049
547 2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>
549         * src/xdgmime.c:
550         * src/xdgmimealias.c:
551         * src/xdgmimeglob.c:
552         * src/xdgmimeint.c:
553         * src/xdgmimemagic.c:
554         * src/xdgmimeparent.c:
556         Include config.h. Fix #913
558 2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>
560         * src/xdgmimealias.c: (_xdg_mime_alias_list_lookup):
562         Fix a typo
564 2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>
566         * src/xdgmime.c: (xdg_mime_unalias_mime_type),
567         (xdg_mime_mime_type_equal), (xdg_mime_mime_type_subclass),
568         (xdg_mime_get_mime_parents):
569         * src/xdgmime.h:
571         Add apis to get parents and to unalias mime type
573 2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>
575         * src/xdgmimealias.c: (_xdg_mime_alias_list_lookup):
576         * src/xdgmimeparent.c: (_xdg_mime_parent_list_lookup):
578         Protect against stupid bsearch() implementations.  (#1961,
579         Morten Welinder)
581 2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>
583         * src/xdgmimeparent.c: (_xdg_mime_parent_read_from_file):
585         Initialize the parent field of the newly allocate list 
586         entry.  (#1916, Alex Larsson)
588 2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>
590         * src/xdgmimeglob.c: (_xdg_mime_glob_read_from_file):
592         Patch from Matthias Clasen <mclasen@redhat.com> to fix
593         a mem leak. Bug #1048
595 2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>
597         * src/xdgmimeglob.h:
599         Patch from Michael.Wilson@bull.net to fix compile error on AIX
601 Sun Nov  7 02:25:21 2004  Jonathan Blandford  <jrb@redhat.com>
603         * src/xdgmime.h: Patch from Matthias Clasen <mclasen@redhat.com>
604         to add alias and inheritence support.
606 2004-09-16  Christophe Fergeau  <teuf@gnome.org>
608         * src/xdgmimeglob.c: (_xdg_glob_hash_free_nodes):
609         * src/xdgmimemagic.c: (_xdg_mime_magic_free): fix memory leaks, 
610           fixes http://bugzilla.gnome.org/show_bug.cgi?id=152771 and
611           http://bugzilla.gnome.org/show_bug.cgi?id=152768
613 Mon Jul 19 00:23:00 2004  Jonathan Blandford  <jrb@gnome.org>
615         * src/xdgmime.c (xdg_mime_register_reload_callback): register a
616         callback when we reload MIME data.
618         * src/xdgmime.c (xdg_mime_remove_callback): Add capability to
619         remove callback.
621 Sun Jul 18 20:56:22 2004  Jonathan Blandford  <jrb@gnome.org>
623         * src/xdgmime.c (xdg_mime_shutdown):
624         (xdg_mime_init): reread data when it changes on disk.
626 Thu May 27 16:18:14 2004  Jonathan Blandford  <jrb@gnome.org>
628         * src/xdgmime.h: move xdg_mime_shutdown into the XDG_ENTRY guard.
630 Thu May 27 15:02:13 2004  Jonathan Blandford  <jrb@gnome.org>
632         * src/xdgmimemagic.c (_xdg_mime_magic_read_magic_file): patch from
633         Hongli Lai <h.lai@chello.nl> to catch magic files that don't end
634         with a '\n'.
636 Fri Apr 30 11:56:01 2004  Jonathan Blandford  <jrb@gnome.org>
638         * src/xdgmimemagic.c (_xdg_mime_magic_read_a_number): make the
639         buffer the right size.  Reported by Morten Welinder, #136323
641 Sun Mar 21 23:56:46 2004  Jonathan Blandford  <jrb@gnome.org>
643         * src/xdgmimemagic.c: Patch from Arjan van de Ven
644         <arjanv@redhat.com> to do s/fgetc/getc_unlocked/g.
646 Wed Mar 10 22:28:41 2004  Jonathan Blandford  <jrb@gnome.org>
648         * src/xdgmimemagic.c (_xdg_mime_magic_read_a_number): fix usage of
649         isdigit.  Reported by Morten Welinder, #136323
651         * src/xdgmimemagic.c (_xdg_mime_magic_read_magic_file): patch from
652         Christophe Fergeau to reverse the order of the matchlet before
653         adding it to the list.
655         * src/xdgmimeint.h (_xdg_utf8_skip): patch from Alexander Larsson
656         to make extern.
658 Wed Jan 21 09:29:41 2004  Jonathan Blandford  <jrb@gnome.org>
660         * src/xdgmimemagic.c (_xdg_mime_magic_insert_match): dropped
661         patches.  Fix.
663         * src/xdgmimeglob.c (_xdg_glob_hash_free_nodes): dropped patches.
664         Fix.
666 Tue Jan 20 14:55:39 2004  Jonathan Blandford  <jrb@gnome.org>
668         * src/xdgmime.h (XDG_MIME_TYPE_UNKNOWN): move the definition so
669         that it catches the XDG_ENTRY mangling.
671         * src/xdgmimemagic.c: make some functions static
673 Tue Jan 20 14:34:26 2004  Jonathan Blandford  <jrb@gnome.org>
675         * src/xdgmime.c (xdg_mime_get_max_buffer_extents): add function so
676         that it's easy to get the max buffer extents.
678 Tue Jan 20 12:55:55 2004  Jonathan Blandford  <jrb@gnome.org>
680         * src/Makefile: Test prefix code
682         * src/xdgmime*.h: Fully use the prefix code
684         * src/xdgmime.c: finish the syncing from both GTK+ and gnome-vfs.
686 Tue Jan 13 16:21:04 2004  Jonathan Blandford  <jrb@gnome.org>
688         * src/xdgmime.[ch] (XDG_MIME_TYPE_UNKNOWN): make an extern const
689         char * so that comparisons can work.
691         * src/xdgmimeint.c (_xdg_utf8_to_ucs4): patch from Dave Jones
692         <davej@redhat.com> to make operations more explicit.
694 Tue Oct 28 15:09:06 2003  Jonathan Blandford  <jrb@redhat.com>
696         * README: Add a readme, and clarify the licensing terms of the
697         software.
699 Tue Oct 28 14:47:37 2003  Jonathan Blandford  <jrb@redhat.com>
701         * src/xdgmime.c (xdg_mime_shutdown): implement shutdown.  This
702         frees all memory and resets to an uninitialized state as best as
703         possible.
705 Mon Oct 27 11:45:58 2003  Jonathan Blandford  <jrb@redhat.com>
707         * src/xdgmimemagic.c (_xdg_mime_magic_read_a_number): strtol
708         returns a long, not an int.  Thanks to Manish Singh for pointing
709         this out.
711         * src/xdgmimemagic.c (_xdg_mime_magic_parse_magic_line): change
712         assertion to avoid a warning.
714 Tue Oct 21 15:56:55 2003  Jonathan Blandford  <jrb@gnome.org>
716         * Makefile: add a simple makefile
717         * src/Makefile: ditto
719 Tue Jul 22 15:37:45 2003  Jonathan Blandford  <jrb@gnome.org>
721         * xdgmime/xdgmime.c (xdg_mime_init): use XDG_DATA_HOME instead of
722         XDG_CONFIG_HOME.