Mercurial > geeqie.yaz
annotate src/options.c @ 822:df541dc41707
Allow to set image overlay info position through options:
- image_overlay.common.x
- image_overlay.common.y
For now, there are only editable through rc file.
author | zas_ |
---|---|
date | Thu, 12 Jun 2008 20:33:51 +0000 |
parents | ff51413f098d |
children | ee33d2ddb661 |
rev | line source |
---|---|
508 | 1 /* |
2 * Geeqie | |
3 * Copyright (C) 2008 The Geeqie Team | |
4 * | |
5 * Authors: Vladimir Nadvornik, Laurent Monin | |
6 * | |
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! | |
10 */ | |
11 | |
12 #include "main.h" | |
13 #include "options.h" | |
14 | |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
15 #include "bar_exif.h" |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
16 #include "editors.h" |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
17 #include "filefilter.h" |
612 | 18 #include "histogram.h" /* HCHAN_RGB */ |
619
2ccc7d856d55
Initialize to correct value (OSD_SHOW_NOTHING instead of FALSE).
zas_
parents:
612
diff
changeset
|
19 #include "image-overlay.h" /* OSD_SHOW_NOTHING */ |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
20 #include "info.h" |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
21 #include "layout.h" |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
22 #include "layout_image.h" |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
23 #include "ui_bookmark.h" |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
24 #include "ui_fileops.h" |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
25 #include "window.h" |
612 | 26 |
508 | 27 ConfOptions *init_options(ConfOptions *options) |
28 { | |
29 if (!options) options = g_new0(ConfOptions, 1); | |
30 | |
31 options->collections.rectangular_selection = FALSE; | |
32 | |
33 options->color_profile.enabled = FALSE; | |
34 options->color_profile.input_type = 0; | |
35 options->color_profile.screen_file = NULL; | |
36 options->color_profile.screen_type = 0; | |
37 options->color_profile.use_image = TRUE; | |
38 | |
39 options->dnd_icon_size = 48; | |
40 options->duplicates_similarity_threshold = 99; | |
41 options->enable_metadata_dirs = FALSE; | |
594
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
42 |
508 | 43 options->file_filter.disable = FALSE; |
44 options->file_filter.show_dot_directory = FALSE; | |
45 options->file_filter.show_hidden_files = FALSE; | |
46 | |
47 options->file_ops.confirm_delete = TRUE; | |
48 options->file_ops.enable_delete_key = TRUE; | |
49 options->file_ops.enable_in_place_rename = TRUE; | |
50 options->file_ops.safe_delete_enable = FALSE; | |
51 options->file_ops.safe_delete_folder_maxsize = 128; | |
52 options->file_ops.safe_delete_path = NULL; | |
53 | |
54 options->file_sort.ascending = TRUE; | |
55 options->file_sort.case_sensitive = FALSE; | |
56 options->file_sort.method = SORT_NAME; | |
57 | |
58 options->fullscreen.above = FALSE; | |
59 options->fullscreen.clean_flip = FALSE; | |
60 options->fullscreen.disable_saver = TRUE; | |
61 options->fullscreen.screen = -1; | |
62 | |
612 | 63 options->histogram.last_channel_mode = HCHAN_RGB; |
64 options->histogram.last_log_mode = 1; | |
65 | |
508 | 66 memset(&options->image.border_color, 0, sizeof(options->image.border_color)); |
67 options->image.dither_quality = (gint)GDK_RGB_DITHER_NORMAL; | |
68 options->image.enable_read_ahead = TRUE; | |
69 options->image.exif_rotate_enable = TRUE; | |
70 options->image.fit_window_to_image = FALSE; | |
71 options->image.idle_read_loop_count = IMAGE_LOADER_IDLE_READ_LOOP_COUNT_DEFAULT; | |
72 options->image.limit_autofit_size = FALSE; | |
73 options->image.limit_window_size = FALSE; | |
74 options->image.max_autofit_size = 100; | |
75 options->image.max_window_size = 100; | |
76 options->image.read_buffer_size = IMAGE_LOADER_READ_BUFFER_SIZE_DEFAULT; | |
77 options->image.scroll_reset_method = SCROLL_RESET_TOPLEFT; | |
78 options->image.tile_cache_max = 10; | |
79 options->image.use_custom_border_color = FALSE; | |
80 options->image.zoom_2pass = TRUE; | |
81 options->image.zoom_increment = 5; | |
82 options->image.zoom_mode = ZOOM_RESET_ORIGINAL; | |
83 options->image.zoom_quality = (gint)GDK_INTERP_BILINEAR; | |
84 options->image.zoom_to_fit_allow_expand = TRUE; | |
85 | |
638
8cc9f349c670
Rename option image_overlay.common.enabled to image_overlay.common.state
zas_
parents:
630
diff
changeset
|
86 options->image_overlay.common.state = (guint)OSD_SHOW_NOTHING; |
508 | 87 options->image_overlay.common.show_at_startup = FALSE; |
88 options->image_overlay.common.template_string = NULL; | |
822
df541dc41707
Allow to set image overlay info position through options:
zas_
parents:
768
diff
changeset
|
89 options->image_overlay.common.x = 10; |
df541dc41707
Allow to set image overlay info position through options:
zas_
parents:
768
diff
changeset
|
90 options->image_overlay.common.y = -10; |
508 | 91 |
92 options->layout.dir_view_type = DIRVIEW_LIST; | |
556
fe675761d091
Replace Layout icon_view field by more generic file_view_type.
zas_
parents:
508
diff
changeset
|
93 options->layout.file_view_type = FILEVIEW_LIST; |
508 | 94 options->layout.float_window.h = 450; |
95 options->layout.float_window.vdivider_pos = -1; | |
96 options->layout.float_window.w = 260; | |
97 options->layout.float_window.x = 0; | |
98 options->layout.float_window.y = 0; | |
99 options->layout.main_window.h = 400; | |
100 options->layout.main_window.hdivider_pos = -1; | |
101 options->layout.main_window.maximized = FALSE; | |
102 options->layout.main_window.vdivider_pos = 200; | |
103 options->layout.main_window.w = 500; | |
104 options->layout.main_window.x = 0; | |
105 options->layout.main_window.y = 0; | |
106 options->layout.order = NULL; | |
764
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
107 options->layout.properties_window.w = DEF_PROPERTY_WIDTH; |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
108 options->layout.properties_window.h = DEF_PROPERTY_HEIGHT; |
508 | 109 options->layout.save_window_positions = FALSE; |
110 options->layout.show_marks = FALSE; | |
111 options->layout.show_thumbnails = FALSE; | |
112 options->layout.style = 0; | |
113 options->layout.toolbar_hidden = FALSE; | |
114 options->layout.tools_float = FALSE; | |
115 options->layout.tools_hidden = FALSE; | |
116 options->layout.tools_restore_state = FALSE; | |
117 | |
118 options->lazy_image_sync = FALSE; | |
119 options->mousewheel_scrolls = FALSE; | |
120 options->open_recent_list_maxsize = 10; | |
121 options->place_dialogs_under_mouse = FALSE; | |
122 | |
123 options->panels.exif.enabled = FALSE; | |
124 options->panels.exif.width = PANEL_DEFAULT_WIDTH; | |
125 options->panels.info.enabled = FALSE; | |
126 options->panels.info.width = PANEL_DEFAULT_WIDTH; | |
127 options->panels.sort.action_state = 0; | |
128 options->panels.sort.enabled = FALSE; | |
129 options->panels.sort.mode_state = 0; | |
130 options->panels.sort.selection_state = 0; | |
131 | |
132 options->progressive_key_scrolling = FALSE; | |
594
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
133 |
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
134 options->save_metadata_in_image_file = FALSE; |
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
135 |
508 | 136 options->show_copy_path = FALSE; |
137 options->show_icon_names = TRUE; | |
138 | |
139 options->slideshow.delay = 150; | |
140 options->slideshow.random = FALSE; | |
141 options->slideshow.repeat = FALSE; | |
142 | |
630
83d3ded39e49
An option to save and restore the last path used was added.
zas_
parents:
629
diff
changeset
|
143 options->startup.path = NULL; |
629 | 144 options->startup.restore_path = FALSE; |
630
83d3ded39e49
An option to save and restore the last path used was added.
zas_
parents:
629
diff
changeset
|
145 options->startup.use_last_path = FALSE; |
508 | 146 |
147 options->thumbnails.cache_into_dirs = FALSE; | |
148 options->thumbnails.enable_caching = TRUE; | |
149 options->thumbnails.fast = TRUE; | |
150 options->thumbnails.max_height = DEFAULT_THUMB_HEIGHT; | |
151 options->thumbnails.max_width = DEFAULT_THUMB_WIDTH; | |
152 options->thumbnails.quality = (gint)GDK_INTERP_TILES; | |
153 options->thumbnails.spec_standard = TRUE; | |
154 options->thumbnails.use_xvpics = TRUE; | |
155 | |
156 options->tree_descend_subdirs = FALSE; | |
157 options->update_on_time_change = TRUE; | |
158 | |
159 return options; | |
160 } | |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
161 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
162 void setup_default_options(ConfOptions *options) |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
163 { |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
164 gchar *path; |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
165 gint i; |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
166 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
167 for (i = 0; i < GQ_EDITOR_SLOTS; i++) |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
168 { |
768
ff51413f098d
Use functions to set editors name and command and ensure they are
zas_
parents:
764
diff
changeset
|
169 editor_set_name(i, NULL); |
ff51413f098d
Use functions to set editors name and command and ensure they are
zas_
parents:
764
diff
changeset
|
170 editor_set_command(i, NULL); |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
171 } |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
172 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
173 editor_reset_defaults(); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
174 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
175 bookmark_add_default(_("Home"), homedir()); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
176 path = g_build_filename(homedir(), "Desktop", NULL); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
177 bookmark_add_default(_("Desktop"), path); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
178 g_free(path); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
179 path = g_build_filename(homedir(), GQ_RC_DIR_COLLECTIONS, NULL); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
180 bookmark_add_default(_("Collections"), path); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
181 g_free(path); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
182 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
183 g_free(options->file_ops.safe_delete_path); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
184 options->file_ops.safe_delete_path = g_build_filename(homedir(), GQ_RC_DIR_TRASH, NULL); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
185 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
186 for (i = 0; i < COLOR_PROFILE_INPUTS; i++) |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
187 { |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
188 options->color_profile.input_file[i] = NULL; |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
189 options->color_profile.input_name[i] = NULL; |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
190 } |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
191 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
192 set_default_image_overlay_template_string(&options->image_overlay.common.template_string); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
193 sidecar_ext_add_defaults(); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
194 options->layout.order = g_strdup("123"); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
195 options->properties.tabs_order = g_strdup(info_tab_default_order()); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
196 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
197 options->shell.path = g_strdup(GQ_DEFAULT_SHELL_PATH); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
198 options->shell.options = g_strdup(GQ_DEFAULT_SHELL_OPTIONS); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
199 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
200 for (i = 0; ExifUIList[i].key; i++) |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
201 ExifUIList[i].current = ExifUIList[i].default_value; |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
202 } |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
203 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
204 void sync_options_with_current_state(ConfOptions *options) |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
205 { |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
206 LayoutWindow *lw = NULL; |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
207 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
208 if (layout_valid(&lw)) |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
209 { |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
210 options->layout.main_window.maximized = window_maximized(lw->window); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
211 if (!options->layout.main_window.maximized) |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
212 { |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
213 layout_geometry_get(NULL, &options->layout.main_window.x, &options->layout.main_window.y, |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
214 &options->layout.main_window.w, &options->layout.main_window.h); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
215 } |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
216 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
217 options->image_overlay.common.state = image_osd_get(lw->image); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
218 } |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
219 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
220 layout_geometry_get_dividers(NULL, &options->layout.main_window.hdivider_pos, &options->layout.main_window.vdivider_pos); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
221 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
222 layout_views_get(NULL, &options->layout.dir_view_type, &options->layout.file_view_type); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
223 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
224 options->layout.show_thumbnails = layout_thumb_get(NULL); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
225 options->layout.show_marks = layout_marks_get(NULL); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
226 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
227 layout_sort_get(NULL, &options->file_sort.method, &options->file_sort.ascending); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
228 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
229 layout_geometry_get_tools(NULL, &options->layout.float_window.x, &options->layout.float_window.y, |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
230 &options->layout.float_window.w, &options->layout.float_window.h, &options->layout.float_window.vdivider_pos); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
231 layout_tools_float_get(NULL, &options->layout.tools_float, &options->layout.tools_hidden); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
232 options->layout.toolbar_hidden = layout_toolbar_hidden(NULL); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
233 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
234 options->color_profile.enabled = layout_image_color_profile_get_use(NULL); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
235 layout_image_color_profile_get(NULL, |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
236 &options->color_profile.input_type, |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
237 &options->color_profile.screen_type, |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
238 &options->color_profile.use_image); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
239 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
240 if (options->startup.restore_path && options->startup.use_last_path) |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
241 { |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
242 g_free(options->startup.path); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
243 options->startup.path = g_strdup(layout_get_path(NULL)); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
244 } |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
245 } |