r4567: Get ATK headers through Zero Install.
[rox-filer/translations.git] / ROX-Filer / src / view_details.h
blob78b6f192d523252ec4872be6a44dc2544cdee5b0
1 /*
2 * ROX-Filer, filer for the ROX desktop project
3 * By Thomas Leonard, <tal197@users.sourceforge.net>.
4 */
6 #ifndef __VIEW_DETAILS_H__
7 #define __VIEW_DETAILS_H__
9 #include <gtk/gtk.h>
11 typedef struct _ViewDetailsClass ViewDetailsClass;
13 typedef struct _ViewItem ViewItem;
15 struct _ViewItem {
16 DirItem *item;
17 MaskedPixmap *image;
18 int old_pos; /* Used while sorting */
19 gchar *utf8_name; /* NULL => leafname is valid */
22 typedef struct _ViewDetails ViewDetails;
24 struct _ViewDetails {
25 GtkTreeView treeview;
26 GtkTreeSelection *selection;
28 FilerWindow *filer_window; /* Used for styles, etc */
30 GPtrArray *items; /* ViewItem */
32 int (*sort_fn)(const void *, const void *);
34 int cursor_base; /* Cursor when minibuffer opened */
36 int wink_item; /* -1 => not winking */
37 gint wink_timeout;
38 int wink_step;
40 int can_change_selection;
42 GtkRequisition desired_size;
44 gboolean lasso_box;
45 int lasso_start_index;
46 int drag_box_x[2]; /* Index 0 is the fixed corner */
47 int drag_box_y[2];
51 #define VIEW_DETAILS(obj) \
52 (GTK_CHECK_CAST((obj), view_details_get_type(), ViewDetails))
54 GtkWidget *view_details_new(FilerWindow *filer_window);
55 GType view_details_get_type(void);
57 #endif /* __VIEW_DETAILS_H__ */