support X11 screen profile
[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         ALTER_DESATURATE
64 } AlterType;
65
66 typedef enum {
67         LAYOUT_HIDE   = 0,
68         LAYOUT_LEFT   = 1 << 0,
69         LAYOUT_RIGHT  = 1 << 1,
70         LAYOUT_TOP    = 1 << 2,
71         LAYOUT_BOTTOM = 1 << 3
72 } LayoutLocation;
73
74
75 typedef enum {
76         IMAGE_STATE_NONE        = 0,
77         IMAGE_STATE_IMAGE       = 1 << 0,
78         IMAGE_STATE_LOADING     = 1 << 1,
79         IMAGE_STATE_ERROR       = 1 << 2,
80         IMAGE_STATE_COLOR_ADJ   = 1 << 3,
81         IMAGE_STATE_ROTATE_AUTO = 1 << 4,
82         IMAGE_STATE_ROTATE_USER = 1 << 5,
83         IMAGE_STATE_DELAY_FLIP  = 1 << 6
84 } ImageState;
85
86 typedef enum {
87         SPLIT_NONE = 0,
88         SPLIT_VERT,
89         SPLIT_HOR,
90         SPLIT_QUAD,
91 } ImageSplitMode;
92
93 typedef enum {
94         FILEDATA_CHANGE_DELETE,
95         FILEDATA_CHANGE_MOVE,
96         FILEDATA_CHANGE_RENAME,
97         FILEDATA_CHANGE_COPY,
98         FILEDATA_CHANGE_UNSPECIFIED,
99         FILEDATA_CHANGE_WRITE_METADATA
100 } FileDataChangeType;
101
102 typedef enum {
103         MTS_MODE_MINUS,
104         MTS_MODE_SET,
105         MTS_MODE_OR,
106         MTS_MODE_AND
107 } MarkToSelectionMode;
108
109 typedef enum {
110         STM_MODE_RESET,
111         STM_MODE_SET,
112         STM_MODE_TOGGLE
113 } SelectionToMarkMode;
114
115 typedef enum {
116         FORMAT_CLASS_UNKNOWN,
117         FORMAT_CLASS_IMAGE,
118         FORMAT_CLASS_RAWIMAGE,
119         FORMAT_CLASS_META,
120         FILE_FORMAT_CLASSES
121 } FileFormatClass;
122
123 typedef enum {
124         SS_ERR_NONE = 0,
125         SS_ERR_DISABLED, /**< secsave is disabled. */
126         SS_ERR_OUT_OF_MEM, /**< memory allocation failure */
127
128         /* see err field in SecureSaveInfo */
129         SS_ERR_OPEN_READ,
130         SS_ERR_OPEN_WRITE,
131         SS_ERR_STAT,
132         SS_ERR_ACCESS,
133         SS_ERR_MKSTEMP,
134         SS_ERR_RENAME,
135         SS_ERR_OTHER,
136 } SecureSaveErrno;
137
138 typedef enum {
139         NOTIFY_PRIORITY_HIGH = 0,
140         NOTIFY_PRIORITY_MEDIUM,
141         NOTIFY_PRIORITY_LOW
142 } NotifyPriority;
143         
144 typedef enum {
145         NOTIFY_MARKS            = 1 << 1, /* changed marks */
146         NOTIFY_PIXBUF           = 1 << 2, /* image was read into fd->pixbuf */
147         NOTIFY_HISTMAP          = 1 << 3, /* histmap was read into fd->histmap */
148         NOTIFY_ORIENTATION      = 1 << 4, /* image was rotated */
149         NOTIFY_METADATA         = 1 << 5, /* changed image metadata, not yet written */
150         NOTIFY_GROUPING         = 1 << 6, /* change in fd->sidecar_files or fd->parent */
151         NOTIFY_REREAD           = 1 << 7, /* changed file size, date, etc., file name remains unchanged */
152         NOTIFY_CHANGE           = 1 << 8  /* generic change described by fd->change */
153 } NotifyType;
154
155 typedef enum {
156         CHANGE_OK                      = 0,
157         CHANGE_WARN_DEST_EXISTS        = 1 << 0,
158         CHANGE_WARN_NO_WRITE_PERM      = 1 << 1,
159         CHANGE_WARN_SAME               = 1 << 2,
160         CHANGE_WARN_CHANGED_EXT        = 1 << 3,
161         CHANGE_ERROR_MASK              = (~0) << 4, /* the values below are fatal errors */
162         CHANGE_NO_READ_PERM            = 1 << 4,
163         CHANGE_NO_WRITE_PERM_DIR       = 1 << 5,
164         CHANGE_NO_DEST_DIR             = 1 << 6,
165         CHANGE_NO_WRITE_PERM_DEST_DIR  = 1 << 7,
166         CHANGE_NO_WRITE_PERM_DEST      = 1 << 8,
167         CHANGE_DEST_EXISTS             = 1 << 9,
168         CHANGE_NO_SRC                  = 1 << 10,
169         CHANGE_GENERIC_ERROR           = 1 << 16
170 } ChangeError;
171
172 typedef enum {
173         METADATA_PLAIN          = 0, /* format that can be edited and written back */
174         METADATA_FORMATTED      = 1  /* for display only */
175 } MetadataFormat;
176
177 typedef enum {
178         STARTUP_PATH_CURRENT    = 0,
179         STARTUP_PATH_LAST,
180         STARTUP_PATH_HOME,
181 } StartUpPath;
182
183 #define MAX_SPLIT_IMAGES 4
184
185 typedef struct _ImageLoader ImageLoader;
186 typedef struct _ThumbLoader ThumbLoader;
187
188 typedef struct _CollectInfo CollectInfo;
189 typedef struct _CollectionData CollectionData;
190 typedef struct _CollectTable CollectTable;
191 typedef struct _CollectWindow CollectWindow;
192
193 typedef struct _ImageWindow ImageWindow;
194
195 typedef struct _FileData FileData;
196 typedef struct _FileDataChangeInfo FileDataChangeInfo;
197
198 typedef struct _LayoutWindow LayoutWindow;
199 typedef struct _LayoutOptions LayoutOptions;
200
201 typedef struct _ViewDir ViewDir;
202 typedef struct _ViewDirInfoList ViewDirInfoList;
203 typedef struct _ViewDirInfoTree ViewDirInfoTree;
204
205 typedef struct _ViewFile ViewFile;
206 typedef struct _ViewFileInfoList ViewFileInfoList;
207 typedef struct _ViewFileInfoIcon ViewFileInfoIcon;
208
209 typedef struct _SlideShowData SlideShowData;
210 typedef struct _FullScreenData FullScreenData;
211
212 typedef struct _PixmapFolders PixmapFolders;
213 typedef struct _Histogram Histogram;
214 typedef struct _HistMap HistMap;
215
216 typedef struct _SecureSaveInfo SecureSaveInfo;
217
218 typedef struct _ExifData ExifData;
219
220 typedef struct _EditorDescription EditorDescription;
221
222 typedef struct _CommandLine CommandLine;
223
224 struct _Histogram {
225         gint histogram_channel; /* drawing mode for histogram */
226         gint histogram_mode;     /* logarithmical or not */
227         guint vgrid; /* number of vertical divisions, 0 for none */
228         guint hgrid; /* number of horizontal divisions, 0 for none */
229         struct {
230                 int R; /* red */
231                 int G; /* green */
232                 int B; /* blue */
233                 int A; /* alpha */
234         } grid_color;  /* grid color */
235
236 };
237
238
239
240 struct _ImageLoader;
241
242 typedef void (* ThumbLoaderFunc)(ThumbLoader *tl, gpointer data);
243
244 typedef void (* FileUtilDoneFunc)(gboolean success, const gchar *done_path, gpointer data);
245
246 struct _ThumbLoader
247 {
248         gboolean standard_loader;
249
250         ImageLoader *il;
251         FileData *fd;           /* fd->pixbuf contains final (scaled) image when done */
252
253         gboolean cache_enable;
254         gboolean cache_hit;
255         gdouble percent_done;
256
257         gint max_w;
258         gint max_h;
259
260         ThumbLoaderFunc func_done;
261         ThumbLoaderFunc func_error;
262         ThumbLoaderFunc func_progress;
263
264         gpointer data;
265
266         guint idle_done_id; /* event source id */
267 };
268
269 struct _CollectInfo
270 {
271         FileData *fd;
272         GdkPixbuf *pixbuf;
273         guint flag_mask;
274 };
275
276 struct _CollectionData
277 {
278         gchar *path;
279         gchar *name;
280         GList *list;
281         SortType sort_method;
282
283         ThumbLoader *thumb_loader;
284         CollectInfo *thumb_info;
285
286         void (*info_updated_func)(CollectionData *, CollectInfo *, gpointer);
287         gpointer info_updated_data;
288
289         gint ref;
290
291         /* geometry */
292         gint window_read;
293         gint window_x;
294         gint window_y;
295         gint window_w;
296         gint window_h;
297
298         /* contents changed since save flag */
299         gboolean changed;
300
301         GHashTable *existence;
302 };
303
304 struct _CollectTable
305 {
306         GtkWidget *scrolled;
307         GtkWidget *listview;
308         gint columns;
309         gint rows;
310
311         CollectionData *cd;
312
313         GList *selection;
314         CollectInfo *prev_selection;
315
316         CollectInfo *click_info;
317
318         GtkWidget *tip_window;
319         guint tip_delay_id; /* event source id */
320         CollectInfo *tip_info;
321
322         GdkWindow *marker_window;
323         CollectInfo *marker_info;
324
325         GtkWidget *status_label;
326         GtkWidget *extra_label;
327
328         gint focus_row;
329         gint focus_column;
330         CollectInfo *focus_info;
331
332         GtkWidget *popup;
333         CollectInfo *drop_info;
334         GList *drop_list;
335
336         guint sync_idle_id; /* event source id */
337         guint drop_idle_id; /* event source id */
338
339         gboolean show_text;
340
341         /* file list for edit menu */
342         GList *editmenu_fd_list;
343 };
344
345 struct _CollectWindow
346 {
347         GtkWidget *window;
348         CollectTable *table;
349         GtkWidget *status_box;
350         GList *list;
351
352         GtkWidget *close_dialog;
353
354         CollectionData *cd;
355 };
356
357 typedef gint (* ImageTileRequestFunc)(ImageWindow *imd, gint x, gint y,
358                                       gint width, gint height, GdkPixbuf *pixbuf, gpointer);
359 typedef void (* ImageTileDisposeFunc)(ImageWindow *imd, gint x, gint y,
360                                       gint width, gint height, GdkPixbuf *pixbuf, gpointer);
361
362 struct _ImageWindow
363 {
364         GtkWidget *widget;      /* use this to add it and show it */
365         GtkWidget *pr;
366         GtkWidget *frame;
367
368         FileData *image_fd;
369
370         gboolean unknown;               /* failed to load image */
371
372         ImageLoader *il;        /* FIXME - image loader should probably go to FileData, but it must first support
373                                    sending callbacks to multiple ImageWindows in parallel */
374
375         gint has_frame;  /* not boolean, see image_new() */
376
377         /* top level (not necessarily parent) window */
378         gboolean top_window_sync;       /* resize top_window when image dimensions change */
379         GtkWidget *top_window;  /* window that gets title, and window to resize when 'fitting' */
380         gchar *title;           /* window title to display left of file name */
381         gchar *title_right;     /* window title to display right of file name */
382         gboolean title_show_zoom;       /* option to include zoom in window title */
383
384         gboolean completed;
385         ImageState state;       /* mask of IMAGE_STATE_* flags about current image */
386
387         void (*func_update)(ImageWindow *imd, gpointer data);
388         void (*func_complete)(ImageWindow *imd, gint preload, gpointer data);
389         void (*func_state)(ImageWindow *imd, ImageState state, gpointer data);
390         ImageTileRequestFunc func_tile_request;
391         ImageTileDisposeFunc func_tile_dispose;
392
393         gpointer data_update;
394         gpointer data_complete;
395         gpointer data_state;
396         gpointer data_tile;
397
398         /* button, scroll functions */
399         void (*func_button)(ImageWindow *, GdkEventButton *event, gpointer);
400         void (*func_drag)(ImageWindow *, GdkEventButton *event, gdouble dx, gdouble dy, gpointer);
401         void (*func_scroll)(ImageWindow *, GdkEventScroll *event, gpointer);
402         void (*func_focus_in)(ImageWindow *, gpointer);
403
404         gpointer data_button;
405         gpointer data_drag;
406         gpointer data_scroll;
407         gpointer data_focus_in;
408
409         /* scroll notification (for scroll bar implementation) */
410         void (*func_scroll_notify)(ImageWindow *, gint x, gint y, gint width, gint height, gpointer);
411
412         gpointer data_scroll_notify;
413
414         /* collection info */
415         CollectionData *collection;
416         CollectInfo *collection_info;
417
418         /* color profiles */
419         gboolean color_profile_enable;
420         gint color_profile_input;
421         gboolean color_profile_use_image;
422         gint color_profile_from_image;
423         gpointer cm;
424
425         AlterType delay_alter_type;
426
427         FileData *read_ahead_fd;
428         ImageLoader *read_ahead_il;
429
430         gint prev_color_row;
431
432         gboolean auto_refresh;
433
434         gboolean delay_flip;
435         gint orientation;
436         gboolean desaturate;
437
438         gboolean overlay_show_zoom; /* set to true if overlay is showing zoom ratio */
439 };
440
441 #define FILEDATA_MARKS_SIZE 6
442
443 struct _FileDataChangeInfo {
444         FileDataChangeType type;
445         gchar *source;
446         gchar *dest;
447         gint error;
448 };
449
450 struct _FileData {
451         gint magick;
452         gint type;
453         gchar *original_path; /* key to file_data_pool hash table */
454         gchar *path;
455         const gchar *name;
456         const gchar *extension;
457         gchar *collate_key_name;
458         gchar *collate_key_name_nocase;
459         gint64 size;
460         time_t date;
461         mode_t mode; /* this is needed at least for notification in view_dir because it is preserved after the file/directory is deleted */
462         
463         guint marks; /* each bit represents one mark */
464         guint valid_marks; /* zero bit means that the corresponding mark needs to be reread */
465
466
467         GList *sidecar_files;
468         FileData *parent; /* parent file if this is a sidecar file, NULL otherwise */
469         FileDataChangeInfo *change; /* for rename, move ... */
470         GdkPixbuf *thumb_pixbuf;
471
472         GdkPixbuf *pixbuf; /* full-size image, only complete images, NULL during loading
473                               all FileData with non-NULL pixbuf are referenced by image_cache */
474                               
475         HistMap *histmap;
476
477         gint ref;
478         gint version; /* increased when any field in this structure is changed */
479         gboolean disable_grouping;
480
481         gint user_orientation;
482         gint exif_orientation;
483         
484         ExifData *exif;
485         GHashTable *modified_xmp; // hash table which contains unwritten xmp metadata in format: key->list of string values
486 };
487
488 struct _LayoutOptions
489 {
490         gchar *id;
491
492         gchar *order;
493         gint style;
494
495         DirViewType dir_view_type;
496         FileViewType file_view_type;
497
498         gboolean show_thumbnails;
499         gboolean show_marks;
500         gboolean show_directory_date;
501
502         struct {
503                 gint w;
504                 gint h;
505                 gint x;
506                 gint y;
507                 gboolean maximized;
508                 gint hdivider_pos;
509                 gint vdivider_pos;
510         } main_window;
511
512         struct {
513                 gint w;
514                 gint h;
515                 gint x;
516                 gint y;
517                 gint vdivider_pos;
518         } float_window;
519
520         struct {
521                 gint w;
522                 gint h;
523         } properties_window;
524
525         struct {
526                 guint state;
527                 gint histogram_channel;
528                 gint histogram_mode;
529         } image_overlay;
530
531         gboolean tools_float;
532         gboolean tools_hidden;
533         gboolean toolbar_hidden;
534         gboolean info_pixel_hidden;
535
536         gchar *home_path;
537         gchar *last_path;
538
539         StartUpPath startup_path;
540
541         gboolean exit_on_close;
542 };
543
544 struct _LayoutWindow
545 {
546         LayoutOptions options;
547
548         FileData *dir_fd;
549
550         /* base */
551
552         GtkWidget *window;
553
554         GtkWidget *main_box;
555
556         GtkWidget *group_box;
557         GtkWidget *h_pane;
558         GtkWidget *v_pane;
559
560         /* menus, path selector */
561
562         GtkActionGroup *action_group;
563         GtkActionGroup *action_group_editors;
564         guint ui_editors_id;
565         GtkUIManager *ui_manager;
566         guint toolbar_merge_id;
567         GList *toolbar_actions;
568
569         GtkWidget *path_entry;
570
571         /* image */
572
573         LayoutLocation image_location;
574
575         ImageWindow *image;
576
577         ImageWindow *split_images[MAX_SPLIT_IMAGES];
578         ImageSplitMode split_mode;
579         gint active_split_image;
580
581         GtkWidget *split_image_widget;
582         GtkSizeGroup *split_image_sizegroup;
583
584         /* tools window (float) */
585
586         GtkWidget *tools;
587         GtkWidget *tools_pane;
588
589 //      gint tools_float;
590 //      gint tools_hidden;
591
592         GtkWidget *menu_bar; /* referenced by lw, exist during whole lw lifetime */
593         /* toolbar */
594
595         GtkWidget *toolbar; /* referenced by lw, exist during whole lw lifetime */
596 //      gint toolbar_hidden;
597
598 //      GtkWidget *thumb_button;
599 //      gint thumbs_enabled;
600 //      gint marks_enabled;
601
602         GtkWidget *back_button;
603
604         /* dir view */
605
606         LayoutLocation dir_location;
607
608         ViewDir *vd;
609         GtkWidget *dir_view;
610
611 //      DirViewType dir_view_type;
612
613         /* file view */
614
615         LayoutLocation file_location;
616
617         ViewFile *vf;
618 //      FileViewType file_view_type;
619
620         GtkWidget *file_view;
621
622         SortType sort_method;
623         gboolean sort_ascend;
624
625         /* status bar */
626
627         GtkWidget *info_box;
628         GtkWidget *info_progress_bar;
629         GtkWidget *info_sort;
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: */