4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
13 extern MIME_type
*text_plain
; /* Often used as a default type */
14 extern MIME_type
*inode_directory
;
15 extern MIME_type
*inode_pipe
;
16 extern MIME_type
*inode_socket
;
17 extern MIME_type
*inode_block_dev
;
18 extern MIME_type
*inode_char_dev
;
19 extern MIME_type
*application_executable
;
20 extern MIME_type
*inode_unknown
;
24 /* Base types - this also determines the sort order */
26 TYPE_UNKNOWN
, /* Not scanned yet */
39 MaskedPixmap
*image
; /* NULL => not loaded yet */
40 time_t image_time
; /* When we loaded the image */
45 const char *basetype_name(DirItem
*item
);
46 MIME_type
*type_get_type(const guchar
*path
);
48 MIME_type
*type_from_path(const char *path
);
49 gboolean
type_open(const char *path
, MIME_type
*type
);
50 MaskedPixmap
*type_to_icon(MIME_type
*type
);
51 GdkAtom
type_to_atom(MIME_type
*type
);
52 MIME_type
*mime_type_from_base_type(int base_type
);
53 int mode_to_base_type(int st_mode
);
54 void type_set_handler_dialog(MIME_type
*type
);
55 gboolean
can_set_run_action(DirItem
*item
);
56 gchar
*describe_current_command(MIME_type
*type
);
57 GdkColor
*type_get_colour(DirItem
*item
, GdkColor
*normal
);