1
|
1 /*
|
196
|
2 * Geeqie
|
9
|
3 * (C) 2004 John Ellis
|
1
|
4 *
|
|
5 * Author: John Ellis
|
|
6 *
|
9
|
7 * This software is released under the GNU General Public License (GNU GPL).
|
|
8 * Please read the included file COPYING for more information.
|
|
9 * This software comes with no warranty of any kind, use at your own risk!
|
1
|
10 */
|
|
11
|
9
|
12
|
281
|
13 #include "main.h"
|
1
|
14
|
320
|
15 #ifdef DEBUG
|
|
16 gint debug = FALSE;
|
|
17 #endif
|
|
18
|
1
|
19
|
318
|
20 ConfOptions *init_options(ConfOptions *options)
|
|
21 {
|
|
22 if (!options) options = g_new0(ConfOptions, 1);
|
|
23
|
|
24 options->main_window_w = 500;
|
|
25 options->main_window_h = 400;
|
|
26 options->main_window_x = 0;
|
|
27 options->main_window_y = 0;
|
|
28 options->main_window_maximized = FALSE;
|
|
29
|
|
30 options->float_window_w = 260;
|
|
31 options->float_window_h = 450;
|
|
32 options->float_window_x = 0;
|
|
33 options->float_window_y = 0;
|
|
34 options->float_window_divider = -1;
|
|
35
|
|
36 options->window_hdivider_pos = -1;
|
|
37 options->window_vdivider_pos = 200;
|
|
38
|
|
39 options->save_window_positions = FALSE;
|
|
40 options->tools_float = FALSE;
|
|
41 options->tools_hidden = FALSE;
|
|
42 options->toolbar_hidden = FALSE;
|
|
43 options->progressive_key_scrolling = FALSE;
|
|
44
|
|
45 options->startup_path_enable = FALSE;
|
|
46 options->startup_path = NULL;
|
|
47 options->confirm_delete = TRUE;
|
|
48 options->enable_delete_key = TRUE;
|
|
49 options->safe_delete_enable = FALSE;
|
|
50 options->safe_delete_path = NULL;
|
|
51 options->safe_delete_size = 128;
|
|
52 options->restore_tool = FALSE;
|
|
53 options->zoom_mode = ZOOM_RESET_ORIGINAL;
|
|
54 options->two_pass_zoom = TRUE;
|
|
55 options->scroll_reset_method = SCROLL_RESET_TOPLEFT;
|
|
56 options->fit_window = FALSE;
|
|
57 options->limit_window_size = FALSE;
|
|
58 options->zoom_to_fit_expands = TRUE;
|
|
59 options->max_window_size = 100;
|
|
60 options->limit_autofit_size = FALSE;
|
|
61 options->max_autofit_size = 100;
|
|
62 options->thumb_max_width = DEFAULT_THUMB_WIDTH;
|
|
63 options->thumb_max_height = DEFAULT_THUMB_HEIGHT;
|
|
64 options->enable_thumb_caching = TRUE;
|
|
65 options->enable_thumb_dirs = FALSE;
|
|
66 options->use_xvpics_thumbnails = TRUE;
|
|
67 options->thumbnail_fast = TRUE;
|
|
68 options->thumbnail_spec_standard = TRUE;
|
|
69 options->enable_metadata_dirs = FALSE;
|
|
70 options->show_dot_files = FALSE;
|
|
71 options->file_filter_disable = FALSE;
|
|
72
|
|
73
|
|
74 options->thumbnails_enabled = FALSE;
|
|
75 options->file_sort_method = SORT_NAME;
|
|
76 options->file_sort_ascending = TRUE;
|
|
77
|
326
|
78 options->slideshow.delay = 150;
|
|
79 options->slideshow.random = FALSE;
|
|
80 options->slideshow.repeat = FALSE;
|
318
|
81
|
|
82 options->mousewheel_scrolls = FALSE;
|
|
83 options->enable_in_place_rename = TRUE;
|
|
84
|
|
85 options->recent_list_max = 10;
|
|
86
|
|
87 options->collection_rectangular_selection = FALSE;
|
|
88
|
|
89 options->tile_cache_max = 10;
|
|
90 options->thumbnail_quality = (gint)GDK_INTERP_TILES;
|
|
91 options->zoom_quality = (gint)GDK_INTERP_BILINEAR;
|
|
92 options->dither_quality = (gint)GDK_RGB_DITHER_NORMAL;
|
|
93
|
|
94 options->zoom_increment = 5;
|
|
95
|
|
96 options->enable_read_ahead = TRUE;
|
|
97
|
|
98 options->place_dialogs_under_mouse = FALSE;
|
|
99
|
|
100 options->user_specified_window_background = FALSE;
|
|
101 memset(&options->window_background_color, 0, sizeof(options->window_background_color));
|
|
102
|
322
|
103 options->fullscreen.screen = -1;
|
|
104 options->fullscreen.clean_flip = FALSE;
|
|
105 options->fullscreen.disable_saver = TRUE;
|
|
106 options->fullscreen.above = FALSE;
|
|
107 options->fullscreen.show_info = TRUE;
|
|
108 options->fullscreen.info = NULL;
|
318
|
109
|
|
110 options->dupe_custom_threshold = 99;
|
|
111
|
319
|
112 options->file_sort_case_sensitive = FALSE;
|
|
113
|
320
|
114 /* layout */
|
327
|
115 options->layout.order = NULL;
|
|
116 options->layout.style = 0;
|
320
|
117
|
327
|
118 options->layout.view_as_icons = FALSE;
|
|
119 options->layout.view_as_tree = FALSE;
|
320
|
120
|
|
121 options->show_icon_names = TRUE;
|
|
122
|
|
123 options->tree_descend_subdirs = FALSE;
|
|
124
|
|
125 options->lazy_image_sync = FALSE;
|
|
126 options->update_on_time_change = TRUE;
|
|
127 options->exif_rotate_enable = TRUE;
|
|
128
|
|
129 /* color profiles */
|
327
|
130 options->color_profile.enabled = FALSE;
|
|
131 options->color_profile.input_type = 0;
|
|
132 options->color_profile.screen_type = 0;
|
|
133 options->color_profile.screen_file = NULL;
|
|
134 options->color_profile.use_image = TRUE;
|
320
|
135
|
|
136 options->filename_filter = NULL;
|
|
137
|
318
|
138 return options;
|
|
139 }
|