separated Orientation and Grayscale functions
[geeqie.git] / src / typedefs.h
1 /*
2  * Geeqie
3  * (C) 2006 John Ellis
4  * Copyright (C) 2008 - 2009 The Geeqie Team
5  *
6  * Author: John Ellis
7  *
8  * This software is released under the GNU General Public License (GNU GPL).
9  * Please read the included file COPYING for more information.
10  * This software comes with no warranty of any kind, use at your own risk!
11  */
12
13
14 #ifndef TYPEDEFS_H
15 #define TYPEDEFS_H
16
17 typedef enum {
18         ZOOM_RESET_ORIGINAL     = 0,
19         ZOOM_RESET_FIT_WINDOW   = 1,
20         ZOOM_RESET_NONE         = 2
21 } ZoomMode;
22
23 typedef enum {
24         MOUSE_BUTTON_LEFT       = 1,
25         MOUSE_BUTTON_MIDDLE     = 2,
26         MOUSE_BUTTON_RIGHT      = 3,
27         MOUSE_BUTTON_WHEEL_UP   = 4,
28         MOUSE_BUTTON_WHEEL_DOWN = 5
29 } MouseButton;
30
31 typedef enum {
32         DIRVIEW_LIST,
33         DIRVIEW_TREE
34 } DirViewType;
35
36 typedef enum {
37         FILEVIEW_LIST,
38         FILEVIEW_ICON
39 } FileViewType;
40
41 #define CMD_COPY     "geeqie-copy-command.desktop"
42 #define CMD_MOVE     "geeqie-move-command.desktop"
43 #define CMD_RENAME   "geeqie-rename-command.desktop"
44 #define CMD_DELETE   "geeqie-delete-command.desktop"
45 #define CMD_FOLDER   "geeqie-folder-command.desktop"
46
47 typedef enum {
48         SORT_NONE,
49         SORT_NAME,
50         SORT_SIZE,
51         SORT_TIME,
52         SORT_PATH,
53         SORT_NUMBER
54 } SortType;
55
56 typedef enum {
57         ALTER_NONE,             /* do nothing */
58         ALTER_ROTATE_90,
59         ALTER_ROTATE_90_CC,     /* counterclockwise */
60         ALTER_ROTATE_180,
61         ALTER_MIRROR,
62         ALTER_FLIP,
63 } AlterType;
64
65 typedef enum {
66         LAYOUT_HIDE   = 0,
67         LAYOUT_LEFT   = 1 << 0,
68         LAYOUT_RIGHT  = 1 << 1,
69         LAYOUT_TOP    = 1 << 2,
70         LAYOUT_BOTTOM = 1 << 3
71 } LayoutLocation;
72
73
74 typedef enum {
75         IMAGE_STATE_NONE        = 0,
76         IMAGE_STATE_IMAGE       = 1 << 0,
77         IMAGE_STATE_LOADING     = 1 << 1,
78         IMAGE_STATE_ERROR       = 1 << 2,
79         IMAGE_STATE_COLOR_ADJ   = 1 << 3,
80         IMAGE_STATE_ROTATE_AUTO = 1 << 4,
81         IMAGE_STATE_ROTATE_USER = 1 << 5,
82         IMAGE_STATE_DELAY_FLIP  = 1 << 6
83 } ImageState;
84
85 typedef enum {
86         SPLIT_NONE = 0,
87         SPLIT_VERT,
88         SPLIT_HOR,
89         SPLIT_QUAD,
90 } ImageSplitMode;
91
92 typedef enum {
93         FILEDATA_CHANGE_DELETE,
94         FILEDATA_CHANGE_MOVE,
95         FILEDATA_CHANGE_RENAME,
96         FILEDATA_CHANGE_COPY,
97         FILEDATA_CHANGE_UNSPECIFIED,
98         FILEDATA_CHANGE_WRITE_METADATA
99 } FileDataChangeType;
100
101 typedef enum {
102         MTS_MODE_MINUS,
103         MTS_MODE_SET,
104         MTS_MODE_OR,
105         MTS_MODE_AND
106 } MarkToSelectionMode;
107
108 typedef enum {
109         STM_MODE_RESET,
110         STM_MODE_SET,
111         STM_MODE_TOGGLE
112 } SelectionToMarkMode;
113
114 typedef enum {
115         FORMAT_CLASS_UNKNOWN,
116         FORMAT_CLASS_IMAGE,
117         FORMAT_CLASS_RAWIMAGE,
118         FORMAT_CLASS_META,
119         FILE_FORMAT_CLASSES
120 } FileFormatClass;
121
122 typedef enum {
123         SS_ERR_NONE = 0,
124         SS_ERR_DISABLED, /**< secsave is disabled. */
125         SS_ERR_OUT_OF_MEM, /**< memory allocation failure */
126
127         /* see err field in SecureSaveInfo */
128         SS_ERR_OPEN_READ,
129         SS_ERR_OPEN_WRITE,
130         SS_ERR_STAT,
131         SS_ERR_ACCESS,
132         SS_ERR_MKSTEMP,
133         SS_ERR_RENAME,
134         SS_ERR_OTHER,
135 } SecureSaveErrno;
136
137 typedef enum {
138         NOTIFY_PRIORITY_HIGH = 0,
139         NOTIFY_PRIORITY_MEDIUM,
140         NOTIFY_PRIORITY_LOW
141 } NotifyPriority;
142         
143 typedef enum {
144         NOTIFY_MARKS            = 1 << 1, /* changed marks */
145         NOTIFY_PIXBUF           = 1 << 2, /* image was read into fd->pixbuf */
146         NOTIFY_HISTMAP          = 1 << 3, /* histmap was read into fd->histmap */
147         NOTIFY_ORIENTATION      = 1 << 4, /* image was rotated */
148         NOTIFY_METADATA         = 1 << 5, /* changed image metadata, not yet written */
149         NOTIFY_GROUPING         = 1 << 6, /* change in fd->sidecar_files or fd->parent */
150         NOTIFY_REREAD           = 1 << 7, /* changed file size, date, etc., file name remains unchanged */
151         NOTIFY_CHANGE           = 1 << 8  /* generic change described by fd->change */
152 } NotifyType;
153
154 typedef enum {
155         CHANGE_OK                      = 0,
156         CHANGE_WARN_DEST_EXISTS        = 1 << 0,
157         CHANGE_WARN_NO_WRITE_PERM      = 1 << 1,
158         CHANGE_WARN_SAME               = 1 << 2,
159         CHANGE_WARN_CHANGED_EXT        = 1 << 3,
160         CHANGE_ERROR_MASK              = (~0) << 4, /* the values below are fatal errors */
161         CHANGE_NO_READ_PERM            = 1 << 4,
162         CHANGE_NO_WRITE_PERM_DIR       = 1 << 5,
163         CHANGE_NO_DEST_DIR             = 1 << 6,
164         CHANGE_NO_WRITE_PERM_DEST_DIR  = 1 << 7,
165         CHANGE_NO_WRITE_PERM_DEST      = 1 << 8,
166         CHANGE_DEST_EXISTS             = 1 << 9,
167         CHANGE_NO_SRC                  = 1 << 10,
168         CHANGE_GENERIC_ERROR           = 1 << 16
169 } ChangeError;
170
171 typedef enum {
172         METADATA_PLAIN          = 0, /* format that can be edited and written back */
173         METADATA_FORMATTED      = 1  /* for display only */
174 } MetadataFormat;
175
176 typedef enum {
177         STARTUP_PATH_CURRENT    = 0,
178         STARTUP_PATH_LAST,
179         STARTUP_PATH_HOME,
180 } StartUpPath;
181
182 #define MAX_SPLIT_IMAGES 4
183
184 typedef struct _ImageLoader ImageLoader;
185 typedef struct _ThumbLoader ThumbLoader;
186
187 typedef struct _CollectInfo CollectInfo;
188 typedef struct _CollectionData CollectionData;
189 typedef struct _CollectTable CollectTable;
190 typedef struct _CollectWindow CollectWindow;
191
192 typedef struct _ImageWindow ImageWindow;
193
194 typedef struct _FileData FileData;
195 typedef struct _FileDataChangeInfo FileDataChangeInfo;
196
197 typedef struct _LayoutWindow LayoutWindow;
198 typedef struct _LayoutOptions LayoutOptions;
199
200 typedef struct _ViewDir ViewDir;
201 typedef struct _ViewDirInfoList ViewDirInfoList;
202 typedef struct _ViewDirInfoTree ViewDirInfoTree;
203
204 typedef struct _ViewFile ViewFile;
205 typedef struct _ViewFileInfoList ViewFileInfoList;
206 typedef struct _ViewFileInfoIcon ViewFileInfoIcon;
207
208 typedef struct _SlideShowData SlideShowData;
209 typedef struct _FullScreenData FullScreenData;
210
211 typedef struct _PixmapFolders PixmapFolders;
212 typedef struct _Histogram Histogram;
213 typedef struct _HistMap HistMap;
214
215 typedef struct _SecureSaveInfo SecureSaveInfo;
216
217 typedef struct _ExifData ExifData;
218
219 typedef struct _EditorDescription EditorDescription;
220
221 typedef struct _CommandLine CommandLine;
222
223 struct _Histogram {
224         gint histogram_channel; /* drawing mode for histogram */
225         gint histogram_mode;     /* logarithmical or not */
226         guint vgrid; /* number of vertical divisions, 0 for none */
227         guint hgrid; /* number of horizontal divisions, 0 for none */
228         struct {
229                 int R; /* red */
230                 int G; /* green */
231                 int B; /* blue */
232                 int A; /* alpha */
233         } grid_color;  /* grid color */
234
235 };
236
237
238
239 struct _ImageLoader;
240
241 typedef void (* ThumbLoaderFunc)(ThumbLoader *tl, gpointer data);
242
243 typedef void (* FileUtilDoneFunc)(gboolean success, const gchar *done_path, gpointer data);
244
245 struct _ThumbLoader
246 {
247         gboolean standard_loader;
248
249         ImageLoader *il;
250         FileData *fd;           /* fd->pixbuf contains final (scaled) image when done */
251
252         gboolean cache_enable;
253         gboolean cache_hit;
254         gdouble percent_done;
255
256         gint max_w;
257         gint max_h;
258
259         ThumbLoaderFunc func_done;
260         ThumbLoaderFunc func_error;
261         ThumbLoaderFunc func_progress;
262
263         gpointer data;
264
265         guint idle_done_id; /* event source id */
266 };
267
268 struct _CollectInfo
269 {
270         FileData *fd;
271         GdkPixbuf *pixbuf;
272         guint flag_mask;
273 };
274
275 struct _CollectionData
276 {
277         gchar *path;
278         gchar *name;
279         GList *list;
280         SortType sort_method;
281
282         ThumbLoader *thumb_loader;
283         CollectInfo *thumb_info;
284
285         void (*info_updated_func)(CollectionData *, CollectInfo *, gpointer);
286         gpointer info_updated_data;
287
288         gint ref;
289
290         /* geometry */
291         gint window_read;
292         gint window_x;
293         gint window_y;
294         gint window_w;
295         gint window_h;
296
297         /* contents changed since save flag */
298         gboolean changed;
299
300         GHashTable *existence;
301 };
302
303 struct _CollectTable
304 {
305         GtkWidget *scrolled;
306         GtkWidget *listview;
307         gint columns;
308         gint rows;
309
310         CollectionData *cd;
311
312         GList *selection;
313         CollectInfo *prev_selection;
314
315         CollectInfo *click_info;
316
317         GtkWidget *tip_window;
318         guint tip_delay_id; /* event source id */
319         CollectInfo *tip_info;
320
321         GdkWindow *marker_window;
322         CollectInfo *marker_info;
323
324         GtkWidget *status_label;
325         GtkWidget *extra_label;
326
327         gint focus_row;
328         gint focus_column;
329         CollectInfo *focus_info;
330
331         GtkWidget *popup;
332         CollectInfo *drop_info;
333         GList *drop_list;
334
335         guint sync_idle_id; /* event source id */
336         guint drop_idle_id; /* event source id */
337
338         gboolean show_text;
339
340         /* file list for edit menu */
341         GList *editmenu_fd_list;
342 };
343
344 struct _CollectWindow
345 {
346         GtkWidget *window;
347         CollectTable *table;
348         GtkWidget *status_box;
349         GList *list;
350
351         GtkWidget *close_dialog;
352
353         CollectionData *cd;
354 };
355
356 typedef gint (* ImageTileRequestFunc)(ImageWindow *imd, gint x, gint y,
357                                       gint width, gint height, GdkPixbuf *pixbuf, gpointer);
358 typedef void (* ImageTileDisposeFunc)(ImageWindow *imd, gint x, gint y,
359                                       gint width, gint height, GdkPixbuf *pixbuf, gpointer);
360
361 struct _ImageWindow
362 {
363         GtkWidget *widget;      /* use this to add it and show it */
364         GtkWidget *pr;
365         GtkWidget *frame;
366
367         FileData *image_fd;
368
369         gboolean unknown;               /* failed to load image */
370
371         ImageLoader *il;        /* FIXME - image loader should probably go to FileData, but it must first support
372                                    sending callbacks to multiple ImageWindows in parallel */
373
374         gint has_frame;  /* not boolean, see image_new() */
375
376         /* top level (not necessarily parent) window */
377         gboolean top_window_sync;       /* resize top_window when image dimensions change */
378         GtkWidget *top_window;  /* window that gets title, and window to resize when 'fitting' */
379         gchar *title;           /* window title to display left of file name */
380         gchar *title_right;     /* window title to display right of file name */
381         gboolean title_show_zoom;       /* option to include zoom in window title */
382
383         gboolean completed;
384         ImageState state;       /* mask of IMAGE_STATE_* flags about current image */
385
386         void (*func_update)(ImageWindow *imd, gpointer data);
387         void (*func_complete)(ImageWindow *imd, gint preload, gpointer data);
388         void (*func_state)(ImageWindow *imd, ImageState state, gpointer data);
389         ImageTileRequestFunc func_tile_request;
390         ImageTileDisposeFunc func_tile_dispose;
391
392         gpointer data_update;
393         gpointer data_complete;
394         gpointer data_state;
395         gpointer data_tile;
396
397         /* button, scroll functions */
398         void (*func_button)(ImageWindow *, GdkEventButton *event, gpointer);
399         void (*func_drag)(ImageWindow *, GdkEventButton *event, gdouble dx, gdouble dy, gpointer);
400         void (*func_scroll)(ImageWindow *, GdkEventScroll *event, gpointer);
401         void (*func_focus_in)(ImageWindow *, gpointer);
402
403         gpointer data_button;
404         gpointer data_drag;
405         gpointer data_scroll;
406         gpointer data_focus_in;
407
408         /* scroll notification (for scroll bar implementation) */
409         void (*func_scroll_notify)(ImageWindow *, gint x, gint y, gint width, gint height, gpointer);
410
411         gpointer data_scroll_notify;
412
413         /* collection info */
414         CollectionData *collection;
415         CollectInfo *collection_info;
416
417         /* color profiles */
418         gboolean color_profile_enable;
419         gint color_profile_input;
420         gboolean color_profile_use_image;
421         gint color_profile_from_image;
422         gpointer cm;
423
424         AlterType delay_alter_type;
425
426         FileData *read_ahead_fd;
427         ImageLoader *read_ahead_il;
428
429         gint prev_color_row;
430
431         gboolean auto_refresh;
432
433         gboolean delay_flip;
434         gint orientation;
435         gboolean desaturate;
436
437         gboolean overlay_show_zoom; /* set to true if overlay is showing zoom ratio */
438 };
439
440 #define FILEDATA_MARKS_SIZE 6
441
442 struct _FileDataChangeInfo {
443         FileDataChangeType type;
444         gchar *source;
445         gchar *dest;
446         gint error;
447 };
448
449 struct _FileData {
450         gint magick;
451         gint type;
452         gchar *original_path; /* key to file_data_pool hash table */
453         gchar *path;
454         const gchar *name;
455         const gchar *extension;
456         gchar *collate_key_name;
457         gchar *collate_key_name_nocase;
458         gint64 size;
459         time_t date;
460         mode_t mode; /* this is needed at least for notification in view_dir because it is preserved after the file/directory is deleted */
461         
462         guint marks; /* each bit represents one mark */
463         guint valid_marks; /* zero bit means that the corresponding mark needs to be reread */
464
465
466         GList *sidecar_files;
467         FileData *parent; /* parent file if this is a sidecar file, NULL otherwise */
468         FileDataChangeInfo *change; /* for rename, move ... */
469         GdkPixbuf *thumb_pixbuf;
470
471         GdkPixbuf *pixbuf; /* full-size image, only complete images, NULL during loading
472                               all FileData with non-NULL pixbuf are referenced by image_cache */
473                               
474         HistMap *histmap;
475
476         gint ref;
477         gint version; /* increased when any field in this structure is changed */
478         gboolean disable_grouping;
479
480         gint user_orientation;
481         gint exif_orientation;
482         
483         ExifData *exif;
484         GHashTable *modified_xmp; // hash table which contains unwritten xmp metadata in format: key->list of string values
485 };
486
487 struct _LayoutOptions
488 {
489         gchar *id;
490
491         gchar *order;
492         gint style;
493
494         DirViewType dir_view_type;
495         FileViewType file_view_type;
496
497         gboolean show_thumbnails;
498         gboolean show_marks;
499         gboolean show_directory_date;
500
501         struct {
502                 gint w;
503                 gint h;
504                 gint x;
505                 gint y;
506                 gboolean maximized;
507                 gint hdivider_pos;
508                 gint vdivider_pos;
509         } main_window;
510
511         struct {
512                 gint w;
513                 gint h;
514                 gint x;
515                 gint y;
516                 gint vdivider_pos;
517         } float_window;
518
519         struct {
520                 gint w;
521                 gint h;
522         } properties_window;
523
524         struct {
525                 guint state;
526                 gint histogram_channel;
527                 gint histogram_mode;
528         } image_overlay;
529
530         gboolean tools_float;
531         gboolean tools_hidden;
532         gboolean toolbar_hidden;
533         gboolean info_pixel_hidden;
534
535         gchar *home_path;
536         gchar *last_path;
537
538         StartUpPath startup_path;
539
540         gboolean exit_on_close;
541 };
542
543 struct _LayoutWindow
544 {
545         LayoutOptions options;
546
547         FileData *dir_fd;
548
549         /* base */
550
551         GtkWidget *window;
552
553         GtkWidget *main_box;
554
555         GtkWidget *group_box;
556         GtkWidget *h_pane;
557         GtkWidget *v_pane;
558
559         /* menus, path selector */
560
561         GtkActionGroup *action_group;
562         GtkActionGroup *action_group_editors;
563         guint ui_editors_id;
564         GtkUIManager *ui_manager;
565         guint toolbar_merge_id;
566         GList *toolbar_actions;
567
568         GtkWidget *path_entry;
569
570         /* image */
571
572         LayoutLocation image_location;
573
574         ImageWindow *image;
575
576         ImageWindow *split_images[MAX_SPLIT_IMAGES];
577         ImageSplitMode split_mode;
578         gint active_split_image;
579
580         GtkWidget *split_image_widget;
581         GtkSizeGroup *split_image_sizegroup;
582
583         /* tools window (float) */
584
585         GtkWidget *tools;
586         GtkWidget *tools_pane;
587
588 //      gint tools_float;
589 //      gint tools_hidden;
590
591         GtkWidget *menu_bar; /* referenced by lw, exist during whole lw lifetime */
592         /* toolbar */
593
594         GtkWidget *toolbar; /* referenced by lw, exist during whole lw lifetime */
595 //      gint toolbar_hidden;
596
597 //      GtkWidget *thumb_button;
598 //      gint thumbs_enabled;
599 //      gint marks_enabled;
600
601         GtkWidget *back_button;
602
603         /* dir view */
604
605         LayoutLocation dir_location;
606
607         ViewDir *vd;
608         GtkWidget *dir_view;
609
610 //      DirViewType dir_view_type;
611
612         /* file view */
613
614         LayoutLocation file_location;
615
616         ViewFile *vf;
617 //      FileViewType file_view_type;
618
619         GtkWidget *file_view;
620
621         SortType sort_method;
622         gboolean sort_ascend;
623
624         /* status bar */
625
626         GtkWidget *info_box;
627         GtkWidget *info_progress_bar;
628         GtkWidget *info_sort;
629         GtkWidget *info_color;
630         GtkWidget *info_status;
631         GtkWidget *info_details;
632         GtkWidget *info_zoom;
633         GtkWidget *info_write;
634         GtkWidget *info_pixel;
635         
636         /* slide show */
637
638         SlideShowData *slideshow;
639
640         /* full screen */
641
642         FullScreenData *full_screen;
643
644         /* dividers */
645
646 //      gint div_h;
647 //      gint div_v;
648 //      gint div_float;
649
650         /* misc */
651
652         GtkWidget *utility_box; /* referenced by lw, exist during whole lw lifetime */
653         GtkWidget *utility_paned; /* between image and bar */
654         GtkWidget *bar_sort;
655         GtkWidget *bar;
656
657 //      gint bar_sort_enabled;
658 //      gint bar_enabled;
659
660 //      gint bar_width;
661
662         GtkWidget *exif_window;
663
664         /* file list for edit menu */
665         GList *editmenu_fd_list;
666 };
667
668 struct _ViewDir
669 {
670         DirViewType type;
671         gpointer info;
672
673         GtkWidget *widget;
674         GtkWidget *view;
675
676         FileData *dir_fd;
677
678         FileData *click_fd;
679
680         FileData *drop_fd;
681         GList *drop_list;
682         guint drop_scroll_id; /* event source id */
683
684         /* func list */
685         void (*select_func)(ViewDir *vd, const gchar *path, gpointer data);
686         gpointer select_data;
687
688         void (*dnd_drop_update_func)(ViewDir *vd);
689         void (*dnd_drop_leave_func)(ViewDir *vd);
690
691         LayoutWindow *layout;
692
693         GtkWidget *popup;
694
695         PixmapFolders *pf;
696 };
697
698 struct _ViewDirInfoList
699 {
700         GList *list;
701 };
702
703 struct _ViewDirInfoTree
704 {
705         guint drop_expand_id; /* event source id */
706         gint busy_ref;
707 };
708
709
710 struct _ViewFile
711 {
712         FileViewType type;
713         gpointer info;
714
715         GtkWidget *widget;
716         GtkWidget *listview;
717         GtkWidget *scrolled;
718         GtkWidget *filter;
719         GtkWidget *filter_check[FILEDATA_MARKS_SIZE];
720
721         FileData *dir_fd;
722         GList *list;
723
724         SortType sort_method;
725         gboolean sort_ascend;
726
727         /* func list */
728         void (*func_thumb_status)(ViewFile *vf, gdouble val, const gchar *text, gpointer data);
729         gpointer data_thumb_status;
730
731         void (*func_status)(ViewFile *vf, gpointer data);
732         gpointer data_status;
733
734         LayoutWindow *layout;
735
736         GtkWidget *popup;
737
738         /* thumbs updates*/
739         gboolean thumbs_running;
740         ThumbLoader *thumbs_loader;
741         FileData *thumbs_filedata;
742
743         /* marks */
744         gboolean marks_enabled;
745         gint active_mark;
746         gint clicked_mark;
747         
748         /* refresh */
749         guint refresh_idle_id; /* event source id */
750
751         /* file list for edit menu */
752         GList *editmenu_fd_list;
753 };
754
755 struct _ViewFileInfoList
756 {
757         FileData *click_fd;
758         FileData *select_fd;
759
760         gboolean thumbs_enabled;
761
762         guint select_idle_id; /* event source id */
763 };
764
765 struct _IconData;
766
767 struct _ViewFileInfoIcon
768 {
769         /* table stuff */
770         gint columns;
771         gint rows;
772
773         GList *selection;
774         struct _IconData *prev_selection;
775
776         GtkWidget *tip_window;
777         guint tip_delay_id; /* event source id */
778         struct _IconData *tip_id;
779
780         struct _IconData *click_id;
781
782         struct _IconData *focus_id;
783         gint focus_row;
784         gint focus_column;
785
786         gboolean show_text;
787 };
788
789 struct _SlideShowData
790 {
791         ImageWindow *imd;
792
793         GList *filelist;
794         CollectionData *cd;
795         FileData *dir_fd;
796         LayoutWindow *layout;
797
798         GList *list;
799         GList *list_done;
800
801         FileData *slide_fd;
802
803         guint slide_count;
804         guint timeout_id; /* event source id */
805
806         gboolean from_selection;
807
808         void (*stop_func)(SlideShowData *, gpointer);
809         gpointer stop_data;
810
811         gboolean paused;
812 };
813
814 struct _FullScreenData
815 {
816         GtkWidget *window;
817         ImageWindow *imd;
818
819         GtkWidget *normal_window;
820         ImageWindow *normal_imd;
821
822         guint hide_mouse_id; /* event source id */
823         guint busy_mouse_id; /* event source id */
824
825         gint cursor_state;
826
827         guint saver_block_id; /* event source id */
828
829         void (*stop_func)(FullScreenData *, gpointer);
830         gpointer stop_data;
831 };
832
833 struct _PixmapFolders
834 {
835         GdkPixbuf *close;
836         GdkPixbuf *open;
837         GdkPixbuf *deny;
838         GdkPixbuf *parent;
839 };
840
841 struct _SecureSaveInfo {
842         FILE *fp; /**< file stream pointer */
843         gchar *file_name; /**< final file name */
844         gchar *tmp_file_name; /**< temporary file name */
845         gint err; /**< set to non-zero value in case of error */
846         gboolean secure_save; /**< use secure save for this file, internal use only */
847         gboolean preserve_perms; /**< whether to preserve perms, TRUE by default */
848         gboolean preserve_mtime; /**< whether to preserve mtime, FALSE by default */
849         gboolean unlink_on_error; /**< whether to remove temporary file on save failure, TRUE by default */
850 };
851
852 struct _CommandLine
853 {
854         int argc;
855         gchar **argv;
856         gboolean startup_blank;
857         gboolean startup_full_screen;
858         gboolean startup_in_slideshow;
859         gboolean startup_command_line_collection;
860         gboolean tools_hide;
861         gboolean tools_show;
862         gchar *path;
863         gchar *file;
864         GList *cmd_list;
865         GList *collection_list;
866         gchar *geometry;
867 };
868
869 #endif
870 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */