r68: Added full Adjust actions for files/dirs/apps for windows and panels.
[rox-filer.git] / ROX-Filer / src / type.h
blob4c4967b3aeb766f3d69f15d6bdc6921c01f9ef1b
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);
31 #endif /* _TYPE_H */