r110: Added a option for using RISC OS mouse bindings to the options box, although
[rox-filer.git] / ROX-Filer / src / type.h
blob53a28a0b160ca1e373f58382f5725e18ad0adfd6
1 /*
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;
12 extern MIME_type text_plain; /* Often used as a default type */
14 #include "pixmaps.h"
15 #include "filer.h"
17 struct _MIME_type
19 char *media_type;
20 char *subtype;
21 MaskedPixmap *image; /* NULL => not loaded yet */
24 /* Prototypes */
25 void type_init();
26 char *basetype_name(FileItem *item);
28 MIME_type *type_from_path(char *path);
29 gboolean type_open(char *path, MIME_type *type);
30 MaskedPixmap *type_to_icon(GtkWidget *window, MIME_type *type);
31 GdkAtom type_to_atom(MIME_type *type);
33 #endif /* _TYPE_H */