3 * Copyright (C) 2008 The Geeqie Team
5 * Authors: Vladimir Nadvornik, Laurent Monin
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!
15 #include "histogram.h" /* HCHAN_RGB */
16 #include "image-overlay.h" /* OSD_SHOW_NOTHING */
18 ConfOptions *init_options(ConfOptions *options)
20 if (!options) options = g_new0(ConfOptions, 1);
22 options->collections.rectangular_selection = FALSE;
24 options->color_profile.enabled = FALSE;
25 options->color_profile.input_type = 0;
26 options->color_profile.screen_file = NULL;
27 options->color_profile.screen_type = 0;
28 options->color_profile.use_image = TRUE;
30 options->dnd_icon_size = 48;
31 options->duplicates_similarity_threshold = 99;
32 options->enable_metadata_dirs = FALSE;
34 options->file_filter.disable = FALSE;
35 options->file_filter.show_dot_directory = FALSE;
36 options->file_filter.show_hidden_files = FALSE;
38 options->file_ops.confirm_delete = TRUE;
39 options->file_ops.enable_delete_key = TRUE;
40 options->file_ops.enable_in_place_rename = TRUE;
41 options->file_ops.safe_delete_enable = FALSE;
42 options->file_ops.safe_delete_folder_maxsize = 128;
43 options->file_ops.safe_delete_path = NULL;
45 options->file_sort.ascending = TRUE;
46 options->file_sort.case_sensitive = FALSE;
47 options->file_sort.method = SORT_NAME;
49 options->fullscreen.above = FALSE;
50 options->fullscreen.clean_flip = FALSE;
51 options->fullscreen.disable_saver = TRUE;
52 options->fullscreen.screen = -1;
54 options->histogram.last_channel_mode = HCHAN_RGB;
55 options->histogram.last_log_mode = 1;
57 memset(&options->image.border_color, 0, sizeof(options->image.border_color));
58 options->image.dither_quality = (gint)GDK_RGB_DITHER_NORMAL;
59 options->image.enable_read_ahead = TRUE;
60 options->image.exif_rotate_enable = TRUE;
61 options->image.fit_window_to_image = FALSE;
62 options->image.idle_read_loop_count = IMAGE_LOADER_IDLE_READ_LOOP_COUNT_DEFAULT;
63 options->image.limit_autofit_size = FALSE;
64 options->image.limit_window_size = FALSE;
65 options->image.max_autofit_size = 100;
66 options->image.max_window_size = 100;
67 options->image.read_buffer_size = IMAGE_LOADER_READ_BUFFER_SIZE_DEFAULT;
68 options->image.scroll_reset_method = SCROLL_RESET_TOPLEFT;
69 options->image.tile_cache_max = 10;
70 options->image.use_custom_border_color = FALSE;
71 options->image.zoom_2pass = TRUE;
72 options->image.zoom_increment = 5;
73 options->image.zoom_mode = ZOOM_RESET_ORIGINAL;
74 options->image.zoom_quality = (gint)GDK_INTERP_BILINEAR;
75 options->image.zoom_to_fit_allow_expand = TRUE;
77 options->image_overlay.common.enabled = (guint)OSD_SHOW_NOTHING;
78 options->image_overlay.common.show_at_startup = FALSE;
79 options->image_overlay.common.template_string = NULL;
81 options->layout.dir_view_type = DIRVIEW_LIST;
82 options->layout.file_view_type = FILEVIEW_LIST;
83 options->layout.float_window.h = 450;
84 options->layout.float_window.vdivider_pos = -1;
85 options->layout.float_window.w = 260;
86 options->layout.float_window.x = 0;
87 options->layout.float_window.y = 0;
88 options->layout.main_window.h = 400;
89 options->layout.main_window.hdivider_pos = -1;
90 options->layout.main_window.maximized = FALSE;
91 options->layout.main_window.vdivider_pos = 200;
92 options->layout.main_window.w = 500;
93 options->layout.main_window.x = 0;
94 options->layout.main_window.y = 0;
95 options->layout.order = NULL;
96 options->layout.save_window_positions = FALSE;
97 options->layout.show_marks = FALSE;
98 options->layout.show_thumbnails = FALSE;
99 options->layout.style = 0;
100 options->layout.toolbar_hidden = FALSE;
101 options->layout.tools_float = FALSE;
102 options->layout.tools_hidden = FALSE;
103 options->layout.tools_restore_state = FALSE;
105 options->lazy_image_sync = FALSE;
106 options->mousewheel_scrolls = FALSE;
107 options->open_recent_list_maxsize = 10;
108 options->place_dialogs_under_mouse = FALSE;
110 options->panels.exif.enabled = FALSE;
111 options->panels.exif.width = PANEL_DEFAULT_WIDTH;
112 options->panels.info.enabled = FALSE;
113 options->panels.info.width = PANEL_DEFAULT_WIDTH;
114 options->panels.sort.action_state = 0;
115 options->panels.sort.enabled = FALSE;
116 options->panels.sort.mode_state = 0;
117 options->panels.sort.selection_state = 0;
119 options->progressive_key_scrolling = FALSE;
121 options->save_metadata_in_image_file = FALSE;
123 options->show_copy_path = FALSE;
124 options->show_icon_names = TRUE;
126 options->slideshow.delay = 150;
127 options->slideshow.random = FALSE;
128 options->slideshow.repeat = FALSE;
130 options->startup.path = NULL;
131 options->startup.restore_path = FALSE;
132 options->startup.use_last_path = FALSE;
134 options->thumbnails.cache_into_dirs = FALSE;
135 options->thumbnails.enable_caching = TRUE;
136 options->thumbnails.fast = TRUE;
137 options->thumbnails.max_height = DEFAULT_THUMB_HEIGHT;
138 options->thumbnails.max_width = DEFAULT_THUMB_WIDTH;
139 options->thumbnails.quality = (gint)GDK_INTERP_TILES;
140 options->thumbnails.spec_standard = TRUE;
141 options->thumbnails.use_xvpics = TRUE;
143 options->tree_descend_subdirs = FALSE;
144 options->update_on_time_change = TRUE;