startup path options simplified and moved to layout options
[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         gint idle_done_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         gint tip_delay_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         gint sync_idle_id;
337         gint drop_idle_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
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         gint drop_scroll_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         gint drop_expand_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         gint refresh_idle_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         gint select_idle_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         gint tip_delay_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         gint timeout_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         gint hide_mouse_id;
823         gint busy_mouse_id;
824         gint cursor_state;
825
826         gint saver_block_id;
827
828         void (*stop_func)(FullScreenData *, gpointer);
829         gpointer stop_data;
830 };
831
832 struct _PixmapFolders
833 {
834         GdkPixbuf *close;
835         GdkPixbuf *open;
836         GdkPixbuf *deny;
837         GdkPixbuf *parent;
838 };
839
840 struct _SecureSaveInfo {
841         FILE *fp; /**< file stream pointer */
842         gchar *file_name; /**< final file name */
843         gchar *tmp_file_name; /**< temporary file name */
844         gint err; /**< set to non-zero value in case of error */
845         gboolean secure_save; /**< use secure save for this file, internal use only */
846         gboolean preserve_perms; /**< whether to preserve perms, TRUE by default */
847         gboolean preserve_mtime; /**< whether to preserve mtime, FALSE by default */
848         gboolean unlink_on_error; /**< whether to remove temporary file on save failure, TRUE by default */
849 };
850
851 struct _CommandLine
852 {
853         int argc;
854         gchar **argv;
855         gboolean startup_blank;
856         gboolean startup_full_screen;
857         gboolean startup_in_slideshow;
858         gboolean startup_command_line_collection;
859         gboolean tools_hide;
860         gboolean tools_show;
861         gchar *path;
862         gchar *file;
863         GList *cmd_list;
864         GList *collection_list;
865         gchar *geometry;
866 };
867
868 #endif
869 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */