Mercurial > geeqie.yaz
annotate src/globals.c @ 505:60f75a9799b2
French translation was updated.
author | zas_ |
---|---|
date | Wed, 23 Apr 2008 23:52:20 +0000 |
parents | a33badd85f16 |
children | 135570a8bd96 |
rev | line source |
---|---|
1 | 1 /* |
196 | 2 * Geeqie |
9 | 3 * (C) 2004 John Ellis |
475 | 4 * Copyright (C) 2008 The Geeqie Team |
1 | 5 * |
6 * Author: John Ellis | |
7 * | |
9 | 8 * This software is released under the GNU General Public License (GNU GPL). |
9 * Please read the included file COPYING for more information. | |
10 * This software comes with no warranty of any kind, use at your own risk! | |
1 | 11 */ |
12 | |
9 | 13 |
281 | 14 #include "main.h" |
1 | 15 |
320 | 16 #ifdef DEBUG |
17 gint debug = FALSE; | |
18 #endif | |
19 | |
1 | 20 |
318 | 21 ConfOptions *init_options(ConfOptions *options) |
22 { | |
23 if (!options) options = g_new0(ConfOptions, 1); | |
24 | |
431 | 25 options->collections.rectangular_selection = FALSE; |
442 | 26 |
431 | 27 options->color_profile.enabled = FALSE; |
28 options->color_profile.input_type = 0; | |
29 options->color_profile.screen_file = NULL; | |
30 options->color_profile.screen_type = 0; | |
31 options->color_profile.use_image = TRUE; | |
442 | 32 |
458
7a69309b91c8
Allow the user to set the drag'n drop icon size through
zas_
parents:
442
diff
changeset
|
33 options->dnd_icon_size = 48; |
431 | 34 options->duplicates_similarity_threshold = 99; |
35 options->enable_metadata_dirs = FALSE; | |
442 | 36 |
431 | 37 options->file_filter.disable = FALSE; |
38 options->file_filter.show_dot_directory = FALSE; | |
39 options->file_filter.show_hidden_files = FALSE; | |
442 | 40 |
341
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
41 options->file_ops.confirm_delete = TRUE; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
42 options->file_ops.enable_delete_key = TRUE; |
431 | 43 options->file_ops.enable_in_place_rename = TRUE; |
341
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
44 options->file_ops.safe_delete_enable = FALSE; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
45 options->file_ops.safe_delete_folder_maxsize = 128; |
431 | 46 options->file_ops.safe_delete_path = NULL; |
442 | 47 |
431 | 48 options->file_sort.ascending = TRUE; |
49 options->file_sort.case_sensitive = FALSE; | |
50 options->file_sort.method = SORT_NAME; | |
442 | 51 |
431 | 52 options->fullscreen.above = FALSE; |
53 options->fullscreen.clean_flip = FALSE; | |
54 options->fullscreen.disable_saver = TRUE; | |
55 options->fullscreen.screen = -1; | |
442 | 56 |
431 | 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; | |
334 | 61 options->image.fit_window_to_image = FALSE; |
431 | 62 options->image.idle_read_loop_count = IMAGE_LOADER_IDLE_READ_LOOP_COUNT_DEFAULT; |
334 | 63 options->image.limit_autofit_size = FALSE; |
431 | 64 options->image.limit_window_size = FALSE; |
334 | 65 options->image.max_autofit_size = 100; |
431 | 66 options->image.max_window_size = 100; |
413
9e521adbf312
Add two new options to control image read buffer at runtime.
zas_
parents:
380
diff
changeset
|
67 options->image.read_buffer_size = IMAGE_LOADER_READ_BUFFER_SIZE_DEFAULT; |
431 | 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; | |
413
9e521adbf312
Add two new options to control image read buffer at runtime.
zas_
parents:
380
diff
changeset
|
76 |
474 | 77 options->image_overlay.common.enabled = FALSE; |
78 options->image_overlay.common.show_at_startup = FALSE; | |
79 options->image_overlay.common.template_string = NULL; | |
80 | |
431 | 81 options->layout.dir_view_type = DIRVIEW_LIST; |
82 options->layout.float_window.h = 450; | |
83 options->layout.float_window.vdivider_pos = -1; | |
84 options->layout.float_window.w = 260; | |
85 options->layout.float_window.x = 0; | |
86 options->layout.float_window.y = 0; | |
87 options->layout.main_window.h = 400; | |
88 options->layout.main_window.hdivider_pos = -1; | |
89 options->layout.main_window.maximized = FALSE; | |
90 options->layout.main_window.vdivider_pos = 200; | |
91 options->layout.main_window.w = 500; | |
92 options->layout.main_window.x = 0; | |
93 options->layout.main_window.y = 0; | |
94 options->layout.order = NULL; | |
95 options->layout.save_window_positions = FALSE; | |
433
5ddcf93278c7
Save Show Marks state to rc file and display current state in menu.
zas_
parents:
431
diff
changeset
|
96 options->layout.show_marks = FALSE; |
431 | 97 options->layout.show_thumbnails = FALSE; |
98 options->layout.style = 0; | |
99 options->layout.toolbar_hidden = FALSE; | |
100 options->layout.tools_float = FALSE; | |
101 options->layout.tools_hidden = FALSE; | |
102 options->layout.tools_restore_state = FALSE; | |
103 options->layout.view_as_icons = FALSE; | |
442 | 104 |
431 | 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; | |
489
3809ffa3567b
Save state and width of exif, info and sort panels to rc file.
zas_
parents:
475
diff
changeset
|
109 |
3809ffa3567b
Save state and width of exif, info and sort panels to rc file.
zas_
parents:
475
diff
changeset
|
110 options->panels.exif.enabled = FALSE; |
3809ffa3567b
Save state and width of exif, info and sort panels to rc file.
zas_
parents:
475
diff
changeset
|
111 options->panels.exif.width = PANEL_DEFAULT_WIDTH; |
3809ffa3567b
Save state and width of exif, info and sort panels to rc file.
zas_
parents:
475
diff
changeset
|
112 options->panels.info.enabled = FALSE; |
3809ffa3567b
Save state and width of exif, info and sort panels to rc file.
zas_
parents:
475
diff
changeset
|
113 options->panels.info.width = PANEL_DEFAULT_WIDTH; |
491 | 114 options->panels.sort.action_state = 0; |
489
3809ffa3567b
Save state and width of exif, info and sort panels to rc file.
zas_
parents:
475
diff
changeset
|
115 options->panels.sort.enabled = FALSE; |
491 | 116 options->panels.sort.mode_state = 0; |
117 options->panels.sort.selection_state = 0; | |
489
3809ffa3567b
Save state and width of exif, info and sort panels to rc file.
zas_
parents:
475
diff
changeset
|
118 |
431 | 119 options->progressive_key_scrolling = FALSE; |
497 | 120 options->show_copy_path = FALSE; |
431 | 121 options->show_icon_names = TRUE; |
442 | 122 |
326 | 123 options->slideshow.delay = 150; |
124 options->slideshow.random = FALSE; | |
125 options->slideshow.repeat = FALSE; | |
442 | 126 |
431 | 127 options->startup_path_enable = FALSE; |
128 options->startup_path = NULL; | |
442 | 129 |
431 | 130 options->thumbnails.cache_into_dirs = FALSE; |
131 options->thumbnails.enable_caching = TRUE; | |
132 options->thumbnails.fast = TRUE; | |
133 options->thumbnails.max_height = DEFAULT_THUMB_HEIGHT; | |
134 options->thumbnails.max_width = DEFAULT_THUMB_WIDTH; | |
135 options->thumbnails.quality = (gint)GDK_INTERP_TILES; | |
136 options->thumbnails.spec_standard = TRUE; | |
137 options->thumbnails.use_xvpics = TRUE; | |
442 | 138 |
320 | 139 options->tree_descend_subdirs = FALSE; |
140 options->update_on_time_change = TRUE; | |
141 | |
318 | 142 return options; |
143 } |