Mercurial > geeqie
annotate src/globals.c @ 354:5c82855feba7
Add a button to reset fullscreen info string to default value.
author | zas_ |
---|---|
date | Sun, 13 Apr 2008 12:24:42 +0000 |
parents | 63380ea3e65d |
children | 673d1eb5af73 |
rev | line source |
---|---|
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 | |
338
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
24 options->layout.main_window.w = 500; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
25 options->layout.main_window.h = 400; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
26 options->layout.main_window.x = 0; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
27 options->layout.main_window.y = 0; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
28 options->layout.main_window.maximized = FALSE; |
318 | 29 |
338
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
30 options->layout.float_window.w = 260; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
31 options->layout.float_window.h = 450; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
32 options->layout.float_window.x = 0; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
33 options->layout.float_window.y = 0; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
34 options->layout.float_window.vdivider_pos = -1; |
318 | 35 |
338
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
36 options->layout.main_window.hdivider_pos = -1; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
37 options->layout.main_window.vdivider_pos = 200; |
318 | 38 |
338
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
39 options->layout.save_window_positions = FALSE; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
40 options->layout.tools_float = FALSE; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
41 options->layout.tools_hidden = FALSE; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
42 options->layout.toolbar_hidden = FALSE; |
318 | 43 options->progressive_key_scrolling = FALSE; |
44 | |
45 options->startup_path_enable = FALSE; | |
46 options->startup_path = NULL; | |
341
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
47 options->file_ops.confirm_delete = TRUE; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
48 options->file_ops.enable_delete_key = TRUE; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
49 options->file_ops.safe_delete_enable = FALSE; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
50 options->file_ops.safe_delete_path = NULL; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
51 options->file_ops.safe_delete_folder_maxsize = 128; |
338
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
52 options->layout.tools_restore_state = FALSE; |
334 | 53 options->image.zoom_mode = ZOOM_RESET_ORIGINAL; |
54 options->image.zoom_2pass = TRUE; | |
55 options->image.scroll_reset_method = SCROLL_RESET_TOPLEFT; | |
56 options->image.fit_window_to_image = FALSE; | |
57 options->image.limit_window_size = FALSE; | |
58 options->image.zoom_to_fit_allow_expand = TRUE; | |
59 options->image.max_window_size = 100; | |
60 options->image.limit_autofit_size = FALSE; | |
61 options->image.max_autofit_size = 100; | |
333 | 62 options->thumbnails.max_width = DEFAULT_THUMB_WIDTH; |
63 options->thumbnails.max_height = DEFAULT_THUMB_HEIGHT; | |
64 options->thumbnails.enable_caching = TRUE; | |
65 options->thumbnails.cache_into_dirs = FALSE; | |
66 options->thumbnails.use_xvpics = TRUE; | |
67 options->thumbnails.fast = TRUE; | |
68 options->thumbnails.spec_standard = TRUE; | |
318 | 69 options->enable_metadata_dirs = FALSE; |
332 | 70 options->file_filter.show_dot_files = FALSE; |
71 options->file_filter.disable = FALSE; | |
318 | 72 |
73 | |
340
77103f3f2cb1
Rename option thumbnails.enabled to layout.show_thumbnails as it makes
zas_
parents:
339
diff
changeset
|
74 options->layout.show_thumbnails = FALSE; |
329 | 75 options->file_sort.method = SORT_NAME; |
76 options->file_sort.ascending = TRUE; | |
318 | 77 |
326 | 78 options->slideshow.delay = 150; |
79 options->slideshow.random = FALSE; | |
80 options->slideshow.repeat = FALSE; | |
318 | 81 |
82 options->mousewheel_scrolls = FALSE; | |
341
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
83 options->file_ops.enable_in_place_rename = TRUE; |
318 | 84 |
343
63380ea3e65d
Rename recent_list_max/open_recent_max to open_recent_list_maxsize.
zas_
parents:
342
diff
changeset
|
85 options->open_recent_list_maxsize = 10; |
318 | 86 |
330 | 87 options->collections.rectangular_selection = FALSE; |
318 | 88 |
334 | 89 options->image.tile_cache_max = 10; |
333 | 90 options->thumbnails.quality = (gint)GDK_INTERP_TILES; |
334 | 91 options->image.zoom_quality = (gint)GDK_INTERP_BILINEAR; |
92 options->image.dither_quality = (gint)GDK_RGB_DITHER_NORMAL; | |
318 | 93 |
334 | 94 options->image.zoom_increment = 5; |
318 | 95 |
334 | 96 options->image.enable_read_ahead = TRUE; |
318 | 97 |
98 options->place_dialogs_under_mouse = FALSE; | |
99 | |
339
de1c2cd06fce
Rename user_specified_window_background and window_background_color
zas_
parents:
338
diff
changeset
|
100 options->image.use_custom_border_color = FALSE; |
de1c2cd06fce
Rename user_specified_window_background and window_background_color
zas_
parents:
338
diff
changeset
|
101 memset(&options->image.border_color, 0, sizeof(options->image.border_color)); |
318 | 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 |
342
07490120df2d
Rename dupe_custom_threshold option to duplicates_similarity_threshold.
zas_
parents:
341
diff
changeset
|
110 options->duplicates_similarity_threshold = 99; |
318 | 111 |
329 | 112 options->file_sort.case_sensitive = FALSE; |
319 | 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; | |
334 | 127 options->image.exif_rotate_enable = TRUE; |
320 | 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 |
318 | 136 return options; |
137 } |