r70: Removed some old code. Dragging now quotes the correct MIME type for files.
[rox-filer.git] / ROX-Filer / src / type.h
blobdb12dbd2476171859fe72870435856aa9ee5b091
1 /* vi: set cindent:
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@ecs.soton.ac.uk>.
6 */
8 #ifndef _TYPE_H
9 #define _TYPE_H
11 typedef struct _MIME_type MIME_type;
13 #include "pixmaps.h"
14 #include "filer.h"
16 struct _MIME_type
18 char *media_type;
19 char *subtype;
20 MaskedPixmap *image; /* NULL => not loaded yet */
23 /* Prototypes */
24 void type_init();
25 char *basetype_name(FileItem *item);
27 MIME_type *type_from_path(char *path);
28 gboolean type_open(char *path, MIME_type *type);
29 MaskedPixmap *type_to_icon(GtkWidget *window, MIME_type *type);
30 GdkAtom type_to_atom(MIME_type *type);
32 #endif /* _TYPE_H */