Mercurial > geeqie.yaz
annotate src/options.c @ 1622:fee96b7345e8
Add an option to Image preferences to restrict custom border to fullscreen mode only. Bug 2798062.
author | zas_ |
---|---|
date | Thu, 04 Jun 2009 19:51:20 +0000 |
parents | 69abb57139f0 |
children | 56115e934133 |
rev | line source |
---|---|
508 | 1 /* |
2 * Geeqie | |
1284 | 3 * Copyright (C) 2008 - 2009 The Geeqie Team |
508 | 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 "layout.h" |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
21 #include "layout_image.h" |
1019 | 22 #include "rcfile.h" |
740
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 | |
1034 | 33 options->color_profile.enabled = TRUE; |
508 | 34 options->color_profile.input_type = 0; |
35 options->color_profile.screen_file = NULL; | |
1586
c3416996fd97
Backed out changeset b5608391f479
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
1548
diff
changeset
|
36 options->color_profile.screen_type = 0; |
508 | 37 options->color_profile.use_image = TRUE; |
38 | |
39 options->dnd_icon_size = 48; | |
40 options->duplicates_similarity_threshold = 99; | |
594
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
41 |
508 | 42 options->file_filter.disable = FALSE; |
43 options->file_filter.show_dot_directory = FALSE; | |
44 options->file_filter.show_hidden_files = FALSE; | |
45 | |
1436
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
46 options->save_window_positions = TRUE; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
47 options->tools_restore_state = TRUE; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
48 |
508 | 49 options->file_ops.confirm_delete = TRUE; |
50 options->file_ops.enable_delete_key = TRUE; | |
51 options->file_ops.enable_in_place_rename = TRUE; | |
52 options->file_ops.safe_delete_enable = FALSE; | |
53 options->file_ops.safe_delete_folder_maxsize = 128; | |
54 options->file_ops.safe_delete_path = NULL; | |
55 | |
56 options->file_sort.ascending = TRUE; | |
57 options->file_sort.case_sensitive = FALSE; | |
58 options->file_sort.method = SORT_NAME; | |
59 | |
60 options->fullscreen.above = FALSE; | |
61 options->fullscreen.clean_flip = FALSE; | |
62 options->fullscreen.disable_saver = TRUE; | |
63 options->fullscreen.screen = -1; | |
64 | |
65 memset(&options->image.border_color, 0, sizeof(options->image.border_color)); | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
848
diff
changeset
|
66 options->image.dither_quality = GDK_RGB_DITHER_NORMAL; |
508 | 67 options->image.enable_read_ahead = TRUE; |
68 options->image.exif_rotate_enable = TRUE; | |
69 options->image.fit_window_to_image = FALSE; | |
70 options->image.limit_autofit_size = FALSE; | |
1034 | 71 options->image.limit_window_size = TRUE; |
508 | 72 options->image.max_autofit_size = 100; |
1034 | 73 options->image.max_window_size = 90; |
1037
86148ec8a299
fixed various problems with preserving viewport on image change,
nadvornik
parents:
1034
diff
changeset
|
74 options->image.scroll_reset_method = SCROLL_RESET_NOCHANGE; |
508 | 75 options->image.tile_cache_max = 10; |
848 | 76 options->image.image_cache_max = 128; /* 4 x 10MPix */ |
508 | 77 options->image.use_custom_border_color = FALSE; |
1622
fee96b7345e8
Add an option to Image preferences to restrict custom border to fullscreen mode only. Bug 2798062.
zas_
parents:
1592
diff
changeset
|
78 options->image.custom_border_fullscreen_only = FALSE; |
508 | 79 options->image.zoom_2pass = TRUE; |
80 options->image.zoom_increment = 5; | |
1034 | 81 options->image.zoom_mode = ZOOM_RESET_NONE; |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
848
diff
changeset
|
82 options->image.zoom_quality = GDK_INTERP_BILINEAR; |
1034 | 83 options->image.zoom_to_fit_allow_expand = FALSE; |
508 | 84 |
1336 | 85 options->image_overlay.template_string = NULL; |
86 options->image_overlay.x = 10; | |
87 options->image_overlay.y = -10; | |
508 | 88 |
89 options->lazy_image_sync = FALSE; | |
90 options->mousewheel_scrolls = FALSE; | |
91 options->open_recent_list_maxsize = 10; | |
92 options->place_dialogs_under_mouse = FALSE; | |
93 | |
1034 | 94 options->progressive_key_scrolling = TRUE; |
594
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
95 |
1208 | 96 options->metadata.enable_metadata_dirs = FALSE; |
97 options->metadata.save_in_image_file = FALSE; | |
98 options->metadata.save_legacy_IPTC = FALSE; | |
99 options->metadata.warn_on_write_problems = TRUE; | |
100 options->metadata.save_legacy_format = FALSE; | |
101 options->metadata.sync_grouped_files = TRUE; | |
102 options->metadata.confirm_write = TRUE; | |
1244 | 103 options->metadata.confirm_after_timeout = FALSE; |
104 options->metadata.confirm_timeout = 10; | |
1208 | 105 options->metadata.confirm_on_image_change = FALSE; |
106 options->metadata.confirm_on_dir_change = TRUE; | |
1592
69abb57139f0
use "keywords" instead of "tags" in option name, it is more consistent
nadvornik
parents:
1587
diff
changeset
|
107 options->metadata.keywords_case_sensitive = FALSE; |
1567
c776b1310ca6
added an option to write image orientation to the metadata
nadvornik
parents:
1548
diff
changeset
|
108 options->metadata.write_orientation = TRUE; |
594
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
109 |
508 | 110 options->show_icon_names = TRUE; |
111 | |
1034 | 112 options->slideshow.delay = 50; |
508 | 113 options->slideshow.random = FALSE; |
114 options->slideshow.repeat = FALSE; | |
115 | |
116 options->thumbnails.cache_into_dirs = FALSE; | |
117 options->thumbnails.enable_caching = TRUE; | |
118 options->thumbnails.max_height = DEFAULT_THUMB_HEIGHT; | |
119 options->thumbnails.max_width = DEFAULT_THUMB_WIDTH; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
848
diff
changeset
|
120 options->thumbnails.quality = GDK_INTERP_TILES; |
508 | 121 options->thumbnails.spec_standard = TRUE; |
122 options->thumbnails.use_xvpics = TRUE; | |
1060 | 123 options->thumbnails.use_exif = FALSE; |
508 | 124 |
125 options->tree_descend_subdirs = FALSE; | |
126 options->update_on_time_change = TRUE; | |
127 | |
128 return options; | |
129 } | |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
130 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
131 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
|
132 { |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
133 gchar *path; |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
134 gint i; |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
135 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
136 bookmark_add_default(_("Home"), homedir()); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
137 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
|
138 bookmark_add_default(_("Desktop"), path); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
139 g_free(path); |
1145
3a7af6a8cd5f
Use functions to return directories instead of constants.
zas_
parents:
1060
diff
changeset
|
140 bookmark_add_default(_("Collections"), get_collections_dir()); |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
141 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
142 g_free(options->file_ops.safe_delete_path); |
1145
3a7af6a8cd5f
Use functions to return directories instead of constants.
zas_
parents:
1060
diff
changeset
|
143 options->file_ops.safe_delete_path = g_strdup(get_trash_dir()); |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
144 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
145 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
|
146 { |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
147 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
|
148 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
|
149 } |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
150 |
1336 | 151 set_default_image_overlay_template_string(&options->image_overlay.template_string); |
1486 | 152 options->sidecar.ext = g_strdup(".jpg;%raw;.ufraw;.xmp"); |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
153 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
154 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
|
155 options->shell.options = g_strdup(GQ_DEFAULT_SHELL_OPTIONS); |
1353 | 156 |
157 #if 0 | |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
158 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
|
159 ExifUIList[i].current = ExifUIList[i].default_value; |
1353 | 160 #endif |
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 |
1309 | 163 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src) |
164 { | |
165 free_layout_options_content(dest); | |
166 | |
167 *dest = *src; | |
1466
6e020d3ab168
added possibility to update existing layout window from config
nadvornik
parents:
1436
diff
changeset
|
168 dest->id = g_strdup(src->id); |
1309 | 169 dest->order = g_strdup(src->order); |
170 dest->home_path = g_strdup(src->home_path); | |
1511
73cecf473802
startup path options simplified and moved to layout options
nadvornik
parents:
1486
diff
changeset
|
171 dest->last_path = g_strdup(src->last_path); |
1309 | 172 } |
173 | |
174 void free_layout_options_content(LayoutOptions *dest) | |
175 { | |
1466
6e020d3ab168
added possibility to update existing layout window from config
nadvornik
parents:
1436
diff
changeset
|
176 g_free(dest->id); |
6e020d3ab168
added possibility to update existing layout window from config
nadvornik
parents:
1436
diff
changeset
|
177 g_free(dest->order); |
6e020d3ab168
added possibility to update existing layout window from config
nadvornik
parents:
1436
diff
changeset
|
178 g_free(dest->home_path); |
1511
73cecf473802
startup path options simplified and moved to layout options
nadvornik
parents:
1486
diff
changeset
|
179 g_free(dest->last_path); |
1309 | 180 } |
181 | |
1436
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
182 LayoutOptions *init_layout_options(LayoutOptions *options) |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
183 { |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
184 memset(options, 0, sizeof(LayoutOptions)); |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
185 |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
186 options->dir_view_type = DIRVIEW_LIST; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
187 options->file_view_type = FILEVIEW_LIST; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
188 options->float_window.h = 450; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
189 options->float_window.vdivider_pos = -1; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
190 options->float_window.w = 260; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
191 options->float_window.x = 0; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
192 options->float_window.y = 0; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
193 options->home_path = NULL; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
194 options->main_window.h = 540; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
195 options->main_window.hdivider_pos = -1; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
196 options->main_window.maximized = FALSE; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
197 options->main_window.vdivider_pos = 200; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
198 options->main_window.w = 720; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
199 options->main_window.x = 0; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
200 options->main_window.y = 0; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
201 options->order = g_strdup("123"); |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
202 options->show_directory_date = FALSE; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
203 options->show_marks = FALSE; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
204 options->show_thumbnails = FALSE; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
205 options->style = 0; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
206 options->info_pixel_hidden = TRUE; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
207 options->toolbar_hidden = FALSE; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
208 options->tools_float = FALSE; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
209 options->tools_hidden = FALSE; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
210 options->image_overlay.histogram_channel = HCHAN_RGB; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
211 options->image_overlay.histogram_mode = 1; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
212 options->image_overlay.state = OSD_SHOW_NOTHING; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
213 return options; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
214 } |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1375
diff
changeset
|
215 |
1019 | 216 static void sync_options_with_current_state(ConfOptions *options) |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
217 { |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
218 LayoutWindow *lw = NULL; |
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 if (layout_valid(&lw)) |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
221 { |
1309 | 222 layout_sync_options_with_current_state(lw); |
223 layout_sort_get(lw, &options->file_sort.method, &options->file_sort.ascending); | |
224 | |
225 options->color_profile.enabled = layout_image_color_profile_get_use(lw); | |
226 layout_image_color_profile_get(lw, | |
227 &options->color_profile.input_type, | |
1586
c3416996fd97
Backed out changeset b5608391f479
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
1548
diff
changeset
|
228 &options->color_profile.screen_type, |
1309 | 229 &options->color_profile.use_image); |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
230 } |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
231 |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
638
diff
changeset
|
232 } |
1019 | 233 |
234 void save_options(ConfOptions *options) | |
235 { | |
236 gchar *rc_path; | |
237 | |
238 sync_options_with_current_state(options); | |
239 | |
1145
3a7af6a8cd5f
Use functions to return directories instead of constants.
zas_
parents:
1060
diff
changeset
|
240 rc_path = g_build_filename(get_rc_dir(), RC_FILE_NAME, NULL); |
1484 | 241 save_config_to_file(rc_path, options); |
1019 | 242 g_free(rc_path); |
243 } | |
244 | |
1313 | 245 gboolean load_options(ConfOptions *options) |
1019 | 246 { |
247 gboolean success; | |
248 gchar *rc_path; | |
249 | |
250 if (isdir(GQ_SYSTEM_WIDE_DIR)) | |
251 { | |
252 rc_path = g_build_filename(GQ_SYSTEM_WIDE_DIR, RC_FILE_NAME, NULL); | |
1484 | 253 success = load_config_from_file(rc_path, TRUE); |
1019 | 254 DEBUG_1("Loading options from %s ... %s", rc_path, success ? "done" : "failed"); |
255 g_free(rc_path); | |
256 } | |
257 | |
1145
3a7af6a8cd5f
Use functions to return directories instead of constants.
zas_
parents:
1060
diff
changeset
|
258 rc_path = g_build_filename(get_rc_dir(), RC_FILE_NAME, NULL); |
1484 | 259 success = load_config_from_file(rc_path, TRUE); |
1019 | 260 DEBUG_1("Loading options from %s ... %s", rc_path, success ? "done" : "failed"); |
261 g_free(rc_path); | |
1313 | 262 return(success); |
1019 | 263 } |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
1037
diff
changeset
|
264 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |