r14: Updated to new callback format (preserved selection on sorting).
[rox-filer.git] / ROX-Filer / src / filer.h
blobfb91e4f10a668b531d5b08339fe0070e3c7db1c3
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 #include <gtk/gtk.h>
9 #include <collection.h>
10 #include "pixmaps.h"
11 #include <sys/types.h>
12 #include <dirent.h>
14 typedef struct _FilerWindow FilerWindow;
15 typedef struct _FileItem FileItem;
17 enum
19 ITEM_FLAG_SYMLINK = 0x1,
22 struct _FilerWindow
24 GtkWidget *window;
25 char *path; /* pathname */
26 Collection *collection;
28 /* Scanning */
29 DIR *dir;
30 gint idle_scan_id; /* (only if dir != NULL) */
33 struct _FileItem
35 char *leafname;
37 int base_type; /* (regular file, dir, pipe, etc) */
38 int flags;
40 int text_width;
41 int pix_width;
42 MaskedPixmap *image;
45 void filer_opendir(char *path);