Mercurial > geeqie.yaz
comparison src/options.c @ 1320:055ed09d5a03
improved bar_sort configuration
author | nadvornik |
---|---|
date | Tue, 24 Feb 2009 22:21:28 +0000 |
parents | cd7204a18f14 |
children | 1fc356f629fe |
comparison
equal
deleted
inserted
replaced
1319:358685fb9dc9 | 1320:055ed09d5a03 |
---|---|
118 options->lazy_image_sync = FALSE; | 118 options->lazy_image_sync = FALSE; |
119 options->mousewheel_scrolls = FALSE; | 119 options->mousewheel_scrolls = FALSE; |
120 options->open_recent_list_maxsize = 10; | 120 options->open_recent_list_maxsize = 10; |
121 options->place_dialogs_under_mouse = FALSE; | 121 options->place_dialogs_under_mouse = FALSE; |
122 | 122 |
123 options->layout.panels.sort.action_state = 0; | |
124 options->layout.panels.sort.enabled = FALSE; | |
125 options->layout.panels.sort.mode_state = 0; | |
126 options->layout.panels.sort.selection_state = 0; | |
127 options->layout.panels.sort.action_filter = NULL; | |
128 | |
129 options->progressive_key_scrolling = TRUE; | 123 options->progressive_key_scrolling = TRUE; |
130 | 124 |
131 options->metadata.enable_metadata_dirs = FALSE; | 125 options->metadata.enable_metadata_dirs = FALSE; |
132 options->metadata.save_in_image_file = FALSE; | 126 options->metadata.save_in_image_file = FALSE; |
133 options->metadata.save_legacy_IPTC = FALSE; | 127 options->metadata.save_legacy_IPTC = FALSE; |
203 free_layout_options_content(dest); | 197 free_layout_options_content(dest); |
204 | 198 |
205 *dest = *src; | 199 *dest = *src; |
206 dest->order = g_strdup(src->order); | 200 dest->order = g_strdup(src->order); |
207 dest->home_path = g_strdup(src->home_path); | 201 dest->home_path = g_strdup(src->home_path); |
208 dest->panels.sort.action_filter = g_strdup(src->panels.sort.action_filter); | |
209 } | 202 } |
210 | 203 |
211 void free_layout_options_content(LayoutOptions *dest) | 204 void free_layout_options_content(LayoutOptions *dest) |
212 { | 205 { |
213 if (dest->order) g_free(dest->order); | 206 if (dest->order) g_free(dest->order); |
214 if (dest->home_path) g_free(dest->home_path); | 207 if (dest->home_path) g_free(dest->home_path); |
215 if (dest->panels.sort.action_filter) g_free(dest->panels.sort.action_filter); | |
216 } | 208 } |
217 | 209 |
218 static void sync_options_with_current_state(ConfOptions *options) | 210 static void sync_options_with_current_state(ConfOptions *options) |
219 { | 211 { |
220 LayoutWindow *lw = NULL; | 212 LayoutWindow *lw = NULL; |