moved color profiles from statusbar to View menu
[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         gint color_profile_screen;
422         gboolean color_profile_use_image;
423         gint color_profile_from_image;
424         gpointer cm;
425
426         AlterType delay_alter_type;
427
428         FileData *read_ahead_fd;
429         ImageLoader *read_ahead_il;
430
431         gint prev_color_row;
432
433         gboolean auto_refresh;
434
435         gboolean delay_flip;
436         gint orientation;
437         gboolean desaturate;
438
439         gboolean overlay_show_zoom; /* set to true if overlay is showing zoom ratio */
440 };
441
442 #define FILEDATA_MARKS_SIZE 6
443
444 struct _FileDataChangeInfo {
445         FileDataChangeType type;
446         gchar *source;
447         gchar *dest;
448         gint error;
449 };
450
451 struct _FileData {
452         gint magick;
453         gint type;
454         gchar *original_path; /* key to file_data_pool hash table */
455         gchar *path;
456         const gchar *name;
457         const gchar *extension;
458         gchar *collate_key_name;
459         gchar *collate_key_name_nocase;
460         gint64 size;
461         time_t date;
462         mode_t mode; /* this is needed at least for notification in view_dir because it is preserved after the file/directory is deleted */
463         
464         guint marks; /* each bit represents one mark */
465         guint valid_marks; /* zero bit means that the corresponding mark needs to be reread */
466
467
468         GList *sidecar_files;
469         FileData *parent; /* parent file if this is a sidecar file, NULL otherwise */
470         FileDataChangeInfo *change; /* for rename, move ... */
471         GdkPixbuf *thumb_pixbuf;
472
473         GdkPixbuf *pixbuf; /* full-size image, only complete images, NULL during loading
474                               all FileData with non-NULL pixbuf are referenced by image_cache */
475                               
476         HistMap *histmap;
477
478         gint ref;
479         gint version; /* increased when any field in this structure is changed */
480         gboolean disable_grouping;
481
482         gint user_orientation;
483         gint exif_orientation;
484         
485         ExifData *exif;
486         GHashTable *modified_xmp; // hash table which contains unwritten xmp metadata in format: key->list of string values
487 };
488
489 struct _LayoutOptions
490 {
491         gchar *id;
492
493         gchar *order;
494         gint style;
495
496         DirViewType dir_view_type;
497         FileViewType file_view_type;
498
499         gboolean show_thumbnails;
500         gboolean show_marks;
501         gboolean show_directory_date;
502
503         struct {
504                 gint w;
505                 gint h;
506                 gint x;
507                 gint y;
508                 gboolean maximized;
509                 gint hdivider_pos;
510                 gint vdivider_pos;
511         } main_window;
512
513         struct {
514                 gint w;
515                 gint h;
516                 gint x;
517                 gint y;
518                 gint vdivider_pos;
519         } float_window;
520
521         struct {
522                 gint w;
523                 gint h;
524         } properties_window;
525
526         struct {
527                 guint state;
528                 gint histogram_channel;
529                 gint histogram_mode;
530         } image_overlay;
531
532         gboolean tools_float;
533         gboolean tools_hidden;
534         gboolean toolbar_hidden;
535         gboolean info_pixel_hidden;
536
537         gchar *home_path;
538         gchar *last_path;
539
540         StartUpPath startup_path;
541
542         gboolean exit_on_close;
543 };
544
545 struct _LayoutWindow
546 {
547         LayoutOptions options;
548
549         FileData *dir_fd;
550
551         /* base */
552
553         GtkWidget *window;
554
555         GtkWidget *main_box;
556
557         GtkWidget *group_box;
558         GtkWidget *h_pane;
559         GtkWidget *v_pane;
560
561         /* menus, path selector */
562
563         GtkActionGroup *action_group;
564         GtkActionGroup *action_group_editors;
565         guint ui_editors_id;
566         GtkUIManager *ui_manager;
567         guint toolbar_merge_id;
568         GList *toolbar_actions;
569
570         GtkWidget *path_entry;
571
572         /* image */
573
574         LayoutLocation image_location;
575
576         ImageWindow *image;
577
578         ImageWindow *split_images[MAX_SPLIT_IMAGES];
579         ImageSplitMode split_mode;
580         gint active_split_image;
581
582         GtkWidget *split_image_widget;
583         GtkSizeGroup *split_image_sizegroup;
584
585         /* tools window (float) */
586
587         GtkWidget *tools;
588         GtkWidget *tools_pane;
589
590 //      gint tools_float;
591 //      gint tools_hidden;
592
593         GtkWidget *menu_bar; /* referenced by lw, exist during whole lw lifetime */
594         /* toolbar */
595
596         GtkWidget *toolbar; /* referenced by lw, exist during whole lw lifetime */
597 //      gint toolbar_hidden;
598
599 //      GtkWidget *thumb_button;
600 //      gint thumbs_enabled;
601 //      gint marks_enabled;
602
603         GtkWidget *back_button;
604
605         /* dir view */
606
607         LayoutLocation dir_location;
608
609         ViewDir *vd;
610         GtkWidget *dir_view;
611
612 //      DirViewType dir_view_type;
613
614         /* file view */
615
616         LayoutLocation file_location;
617
618         ViewFile *vf;
619 //      FileViewType file_view_type;
620
621         GtkWidget *file_view;
622
623         SortType sort_method;
624         gboolean sort_ascend;
625
626         /* status bar */
627
628         GtkWidget *info_box;
629         GtkWidget *info_progress_bar;
630         GtkWidget *info_sort;
631         GtkWidget *info_status;
632         GtkWidget *info_details;
633         GtkWidget *info_zoom;
634         GtkWidget *info_write;
635         GtkWidget *info_pixel;
636         
637         /* slide show */
638
639         SlideShowData *slideshow;
640
641         /* full screen */
642
643         FullScreenData *full_screen;
644
645         /* dividers */
646
647 //      gint div_h;
648 //      gint div_v;
649 //      gint div_float;
650
651         /* misc */
652
653         GtkWidget *utility_box; /* referenced by lw, exist during whole lw lifetime */
654         GtkWidget *utility_paned; /* between image and bar */
655         GtkWidget *bar_sort;
656         GtkWidget *bar;
657
658 //      gint bar_sort_enabled;
659 //      gint bar_enabled;
660
661 //      gint bar_width;
662
663         GtkWidget *exif_window;
664
665         /* file list for edit menu */
666         GList *editmenu_fd_list;
667 };
668
669 struct _ViewDir
670 {
671         DirViewType type;
672         gpointer info;
673
674         GtkWidget *widget;
675         GtkWidget *view;
676
677         FileData *dir_fd;
678
679         FileData *click_fd;
680
681         FileData *drop_fd;
682         GList *drop_list;
683         guint drop_scroll_id; /* event source id */
684
685         /* func list */
686         void (*select_func)(ViewDir *vd, const gchar *path, gpointer data);
687         gpointer select_data;
688
689         void (*dnd_drop_update_func)(ViewDir *vd);
690         void (*dnd_drop_leave_func)(ViewDir *vd);
691
692         LayoutWindow *layout;
693
694         GtkWidget *popup;
695
696         PixmapFolders *pf;
697 };
698
699 struct _ViewDirInfoList
700 {
701         GList *list;
702 };
703
704 struct _ViewDirInfoTree
705 {
706         guint drop_expand_id; /* event source id */
707         gint busy_ref;
708 };
709
710
711 struct _ViewFile
712 {
713         FileViewType type;
714         gpointer info;
715
716         GtkWidget *widget;
717         GtkWidget *listview;
718         GtkWidget *scrolled;
719         GtkWidget *filter;
720         GtkWidget *filter_check[FILEDATA_MARKS_SIZE];
721
722         FileData *dir_fd;
723         GList *list;
724
725         SortType sort_method;
726         gboolean sort_ascend;
727
728         /* func list */
729         void (*func_thumb_status)(ViewFile *vf, gdouble val, const gchar *text, gpointer data);
730         gpointer data_thumb_status;
731
732         void (*func_status)(ViewFile *vf, gpointer data);
733         gpointer data_status;
734
735         LayoutWindow *layout;
736
737         GtkWidget *popup;
738
739         /* thumbs updates*/
740         gboolean thumbs_running;
741         ThumbLoader *thumbs_loader;
742         FileData *thumbs_filedata;
743
744         /* marks */
745         gboolean marks_enabled;
746         gint active_mark;
747         gint clicked_mark;
748         
749         /* refresh */
750         guint refresh_idle_id; /* event source id */
751
752         /* file list for edit menu */
753         GList *editmenu_fd_list;
754 };
755
756 struct _ViewFileInfoList
757 {
758         FileData *click_fd;
759         FileData *select_fd;
760
761         gboolean thumbs_enabled;
762
763         guint select_idle_id; /* event source id */
764 };
765
766 struct _IconData;
767
768 struct _ViewFileInfoIcon
769 {
770         /* table stuff */
771         gint columns;
772         gint rows;
773
774         GList *selection;
775         struct _IconData *prev_selection;
776
777         GtkWidget *tip_window;
778         guint tip_delay_id; /* event source id */
779         struct _IconData *tip_id;
780
781         struct _IconData *click_id;
782
783         struct _IconData *focus_id;
784         gint focus_row;
785         gint focus_column;
786
787         gboolean show_text;
788 };
789
790 struct _SlideShowData
791 {
792         ImageWindow *imd;
793
794         GList *filelist;
795         CollectionData *cd;
796         FileData *dir_fd;
797         LayoutWindow *layout;
798
799         GList *list;
800         GList *list_done;
801
802         FileData *slide_fd;
803
804         guint slide_count;
805         guint timeout_id; /* event source id */
806
807         gboolean from_selection;
808
809         void (*stop_func)(SlideShowData *, gpointer);
810         gpointer stop_data;
811
812         gboolean paused;
813 };
814
815 struct _FullScreenData
816 {
817         GtkWidget *window;
818         ImageWindow *imd;
819
820         GtkWidget *normal_window;
821         ImageWindow *normal_imd;
822
823         guint hide_mouse_id; /* event source id */
824         guint busy_mouse_id; /* event source id */
825
826         gint cursor_state;
827
828         guint saver_block_id; /* event source id */
829
830         void (*stop_func)(FullScreenData *, gpointer);
831         gpointer stop_data;
832 };
833
834 struct _PixmapFolders
835 {
836         GdkPixbuf *close;
837         GdkPixbuf *open;
838         GdkPixbuf *deny;
839         GdkPixbuf *parent;
840 };
841
842 struct _SecureSaveInfo {
843         FILE *fp; /**< file stream pointer */
844         gchar *file_name; /**< final file name */
845         gchar *tmp_file_name; /**< temporary file name */
846         gint err; /**< set to non-zero value in case of error */
847         gboolean secure_save; /**< use secure save for this file, internal use only */
848         gboolean preserve_perms; /**< whether to preserve perms, TRUE by default */
849         gboolean preserve_mtime; /**< whether to preserve mtime, FALSE by default */
850         gboolean unlink_on_error; /**< whether to remove temporary file on save failure, TRUE by default */
851 };
852
853 struct _CommandLine
854 {
855         int argc;
856         gchar **argv;
857         gboolean startup_blank;
858         gboolean startup_full_screen;
859         gboolean startup_in_slideshow;
860         gboolean startup_command_line_collection;
861         gboolean tools_hide;
862         gboolean tools_show;
863         gchar *path;
864         gchar *file;
865         GList *cmd_list;
866         GList *collection_list;
867         gchar *geometry;
868 };
869
870 #endif
871 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */