summaryrefslogtreecommitdiff
path: root/gtk/xdgmime/xdgmime.c
Commit message (Collapse)AuthorAgeFilesLines
* removed local xdgmime copy as Matthias suggested in bug #520874, commentCarlos Garnacho2008-06-101-855/+0
| | | | | | | | | | | 2008-06-10 Carlos Garnacho <carlos@imendio.com> * configure.in: * gtk/Makefile.am: * gtk/xdgmime: removed local xdgmime copy as Matthias suggested in bug #520874, comment #8. It's no longer used directly by GTK+. svn path=/trunk/; revision=20343
* Sync xdgmime to the copy in gioMatthias Clasen2008-04-161-34/+41
| | | | svn path=/trunk/; revision=20013
* Partically revert the last commit after realizing thatMatthias Clasen2008-04-161-11/+2
| | | | | | | | | | | | | | | 2008-04-16 Matthias Clasen <mclasen@redhat.com> Partically revert the last commit after realizing that xdg_mime_media_type_equal doesn't have to init at all. * xdgmime/xdgmime.h: * xdgmime/xdgmime.c: Get rid of _xdg_mime_media_type_equal * xdgmime/xdgmimecache.c: Use xdg_mime_media_type_equal svn path=/trunk/; revision=20011
* Avoid possible memory corruption in xdgmime, fd.o bug 12512, reported byMatthias Clasen2008-04-161-4/+11
| | | | | | | | | | | | | | | | | 2008-04-16 Matthias Clasen <mclasen@redhat.com> Avoid possible memory corruption in xdgmime, fd.o bug 12512, reported by Joe Shaw and Federico Mena Quintero. * xdgmime.c(_xdg_mime_media_type_equal): Implement. (xdg_mime_media_type_equal): Turn into a wrapper around the _-prefixed version. * xdgmimecache.c: Use the _-prefixed versions of comparison functions throughout. svn path=/trunk/; revision=20009
* Fix a thinko that leads to constantly reloading the mime data if aMatthias Clasen2006-07-201-14/+25
| | | | | | | | | | | 2006-07-20 Matthias Clasen <mclasen@redhat.com> Fix a thinko that leads to constantly reloading the mime data if a mime.cache is present. Patch by Yevgen Muntyan, bugs.freedesktop.org #7495 * xdgmime.c (xdg_check_dir): Look for mime.cache first. (xdg_check_file): Report existance of the file separately.
* Free caches on shutdownMatthias Clasen2006-07-201-0/+11
|
* Add xdg_init-free versions of some functions and use them internally, soMatthias Clasen2006-07-201-17/+37
| | | | | | | | | | | | 2006-07-20 Matthias Clasen <mclasen@redhat.com> * xdgmimemagic.c: * xdgmime.c: * xdgmime.h: Add xdg_init-free versions of some functions and use them internally, so that we don't reload caches and clobber data structures in the middle of an operation. Patch by Joe Shaw, bugs.freedesktop.org #6824
* Move a constant string to rodataMatthias Clasen2006-04-041-1/+1
|
* Merge upstream changes to handle duplicate glob patterns.Matthias Clasen2005-12-011-11/+13
|
* Prevent a segfaultMatthias Clasen2005-11-041-0/+4
|
* Remove a debugging printf.Matthias Clasen2005-10-181-3/+1
| | | | | | | 2005-10-17 Matthias Clasen <mclasen@redhat.com> * xdgmime.c (xdg_mime_get_mime_type_for_file): Remove a debugging printf.
* Pass statbufs down to xdg_mime_get_mime_type_for_file() where possible, toMatthias Clasen2005-09-011-5/+13
| | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilesystemunix.c: Pass statbufs down to xdg_mime_get_mime_type_for_file() where possible, to avoid useless re-stating.
* Don't export extra stuffMatthias Clasen2005-08-071-11/+13
|
* Pass the correct size to realloc(). FixesFederico Mena Quintero2005-06-101-1/+1
| | | | | | | 2005-06-10 Federico Mena Quintero <federico@ximian.com> * xdgmime.c (xdg_mime_init_from_directory): Pass the correct size to realloc(). Fixes https://bugs.freedesktop.org/show_bug.cgi?id=3506.
* Sync to upstream.Matthias Clasen2005-04-291-1/+8
| | | | | | 2005-04-29 Matthias Clasen <mclasen@redhat.com> * Sync to upstream.
* Forgotten fileMatthias Clasen2005-04-041-0/+75
|
* revert previous change, maintain ABI.Manish Singh2005-03-011-1/+1
| | | | | | Tue Mar 1 13:53:56 2005 Manish Singh <yosh@gimp.org> * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
* gdk/gdkkeyuni.c gdk/gdkpixbuf-drawable.c gdk/gdkrgb.c gdk/x11/gdkdnd-x11.cMatthias Clasen2005-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-01 Matthias Clasen <mclasen@redhat.com> * gdk/gdkkeyuni.c * gdk/gdkpixbuf-drawable.c * gdk/gdkrgb.c * gdk/x11/gdkdnd-x11.c * gdk/x11/gdkevents-x11.c * gdk/x11/gdkproperty-x11.c * gdk/x11/gdkvisual-x11.c * gdk-pixbuf/gdk-pixbuf.c * gtk/gtkaction.c * gtk/gtkbindings.c * gtk/gtkcolorbutton.c * gtk/gtkcombo.c * gtk/gtkcontainer.c * gtk/gtkfilechooserdefault.c * gtk/gtkfilesel.c * gtk/gtkgamma.c * gtk/gtkiconview.c * gtk/gtkinputdialog.c * gtk/gtkitemfactory.c * gtk/gtkmenu.c * gtk/gtktextview.c * gtk/gtktooltips.c * gtk/gtktreedatalist.c * gtk/gtkuimanager.c * gtk/tree_minus.xpm * gtk/tree_plus.xpm * gtk/xdgmime/xdgmime.c * gtk/xdgmime/xdgmime.h: Move constant data to .rodata.
* Resync with upstreamMarco Pesenti Gritti2004-12-091-6/+23
| | | | | | | | | | | | | | | | | 2004-12-09 Marco Pesenti Gritti <marco@gnome.org> * xdgmime.c: (xdg_mime_unalias_mime_type), (xdg_mime_mime_type_equal), (xdg_mime_mime_type_subclass), (xdg_mime_get_mime_parents): * xdgmime.h: * xdgmimealias.c: (_xdg_mime_alias_list_lookup): * xdgmimeglob.c: (_xdg_glob_hash_node_lookup_file_name): * xdgmimeint.c: (_xdg_ucs4_to_lower): * xdgmimeint.h: * xdgmimemagic.c: (_xdg_mime_magic_read_from_file): * xdgmimeparent.c: (_xdg_mime_parent_list_lookup): Resync with upstream
* Don't put /* within a comment.Manish Singh2004-11-191-1/+1
| | | | | | Fri Nov 19 15:10:32 2004 Manish Singh <yosh@gimp.org> * xdgmime.c: Don't put /* within a comment.
* Use xdg_mime_mime_type_subclass() to match mime types. This also gives useMatthias Clasen2004-11-081-2/+5
| | | | | | | | | 2004-11-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilefilter.c (gtk_file_filter_filter): Use xdg_mime_mime_type_subclass() to match mime types. This also gives use wildcard matching. (#143760, #141224, Tommi Komulainen, David A Knight)
* Sync from upstreamMatthias Clasen2004-11-081-67/+498
| | | | | | 2004-11-08 Matthias Clasen <mclasen@redhat.com> * Sync from upstream
* Make sure to include <config.h> (#137001)Morten Welinder2004-03-121-0/+1
| | | | | | 2004-03-12 Morten Welinder <terra@gnome.org> * *.c: Make sure to include <config.h> (#137001)
* Sync from upstreamJonathan Blandford2004-03-111-1/+8
| | | | | | Wed Mar 10 22:48:15 2004 Jonathan Blandford <jrb@gnome.org> * Sync from upstream
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* resync with upstream sources.Jonathan Blandford2004-01-201-6/+22
| | | | | | Tue Jan 20 13:07:04 2004 Jonathan Blandford <jrb@gnome.org> * xdgmime.c: resync with upstream sources.
* Relicense to be dual AFL/LGPL (and thus also GPL) rather than AFL/GPL.Owen Taylor2003-10-241-12/+13
| | | | | | | Fri Oct 24 16:02:32 2003 Owen Taylor <otaylor@redhat.com> * *.[ch]: Relicense to be dual AFL/LGPL (and thus also GPL) rather than AFL/GPL. Also update AFL version to 1.2.
* use XDG_DATA_HOME instead of XDG_CONFIG_HOME.Jonathan Blandford2003-07-221-4/+4
| | | | | * xdgmime/xdgmime.c (xdg_mime_init): use XDG_DATA_HOME instead of XDG_CONFIG_HOME.
* auto-ize.Owen Taylor2003-07-161-0/+235
Wed Jul 16 16:50:31 2003 Owen Taylor <otaylor@redhat.com> * configure.ac Makefile.am: auto-ize. * xdgmime/: Add freedesktop.org MIME spec implementatin by Jonathan Blandford. * gtkfilesystem.[ch]: Add gtk_file_info_render_icon() gtk_file_info_set/get_icon_type to do icon handling based on MIME type. Add a simple icon caching system. * gtkfilesystemgnomevfs.c: Implement ensure_types() so that extending the set of types for a loaded directory works. Set the MIME type to get the default icon handling. * gtkfilesystemunix.c: Look up the MIME type using xdgmime. * gtkfilechooserimpldefault.c: Display icons in the list.