Mercurial > geeqie.yaz
annotate src/globals.c @ 465:b8731e13028b
renamed no.po to nb.po
author | nadvornik |
---|---|
date | Mon, 21 Apr 2008 18:09:30 +0000 |
parents | 7a69309b91c8 |
children | 2df505c60459 |
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 | |
431 | 24 options->collections.rectangular_selection = FALSE; |
442 | 25 |
431 | 26 options->color_profile.enabled = FALSE; |
27 options->color_profile.input_type = 0; | |
28 options->color_profile.screen_file = NULL; | |
29 options->color_profile.screen_type = 0; | |
30 options->color_profile.use_image = TRUE; | |
442 | 31 |
458
7a69309b91c8
Allow the user to set the drag'n drop icon size through
zas_
parents:
442
diff
changeset
|
32 options->dnd_icon_size = 48; |
431 | 33 options->duplicates_similarity_threshold = 99; |
34 options->enable_metadata_dirs = FALSE; | |
442 | 35 |
431 | 36 options->file_filter.disable = FALSE; |
37 options->file_filter.show_dot_directory = FALSE; | |
38 options->file_filter.show_hidden_files = FALSE; | |
442 | 39 |
341
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
40 options->file_ops.confirm_delete = TRUE; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
41 options->file_ops.enable_delete_key = TRUE; |
431 | 42 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
|
43 options->file_ops.safe_delete_enable = FALSE; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
44 options->file_ops.safe_delete_folder_maxsize = 128; |
431 | 45 options->file_ops.safe_delete_path = NULL; |
442 | 46 |
431 | 47 options->file_sort.ascending = TRUE; |
48 options->file_sort.case_sensitive = FALSE; | |
49 options->file_sort.method = SORT_NAME; | |
442 | 50 |
431 | 51 options->fullscreen.above = FALSE; |
52 options->fullscreen.clean_flip = FALSE; | |
53 options->fullscreen.disable_saver = TRUE; | |
54 options->fullscreen.info = NULL; | |
55 options->fullscreen.screen = -1; | |
56 options->fullscreen.show_info = TRUE; | |
442 | 57 |
431 | 58 memset(&options->image.border_color, 0, sizeof(options->image.border_color)); |
59 options->image.dither_quality = (gint)GDK_RGB_DITHER_NORMAL; | |
60 options->image.enable_read_ahead = TRUE; | |
61 options->image.exif_rotate_enable = TRUE; | |
334 | 62 options->image.fit_window_to_image = FALSE; |
431 | 63 options->image.idle_read_loop_count = IMAGE_LOADER_IDLE_READ_LOOP_COUNT_DEFAULT; |
334 | 64 options->image.limit_autofit_size = FALSE; |
431 | 65 options->image.limit_window_size = FALSE; |
334 | 66 options->image.max_autofit_size = 100; |
431 | 67 options->image.max_window_size = 100; |
413
9e521adbf312
Add two new options to control image read buffer at runtime.
zas_
parents:
380
diff
changeset
|
68 options->image.read_buffer_size = IMAGE_LOADER_READ_BUFFER_SIZE_DEFAULT; |
431 | 69 options->image.scroll_reset_method = SCROLL_RESET_TOPLEFT; |
70 options->image.tile_cache_max = 10; | |
71 options->image.use_custom_border_color = FALSE; | |
72 options->image.zoom_2pass = TRUE; | |
73 options->image.zoom_increment = 5; | |
74 options->image.zoom_mode = ZOOM_RESET_ORIGINAL; | |
75 options->image.zoom_quality = (gint)GDK_INTERP_BILINEAR; | |
76 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
|
77 |
431 | 78 options->layout.dir_view_type = DIRVIEW_LIST; |
79 options->layout.float_window.h = 450; | |
80 options->layout.float_window.vdivider_pos = -1; | |
81 options->layout.float_window.w = 260; | |
82 options->layout.float_window.x = 0; | |
83 options->layout.float_window.y = 0; | |
84 options->layout.main_window.h = 400; | |
85 options->layout.main_window.hdivider_pos = -1; | |
86 options->layout.main_window.maximized = FALSE; | |
87 options->layout.main_window.vdivider_pos = 200; | |
88 options->layout.main_window.w = 500; | |
89 options->layout.main_window.x = 0; | |
90 options->layout.main_window.y = 0; | |
91 options->layout.order = NULL; | |
92 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
|
93 options->layout.show_marks = FALSE; |
431 | 94 options->layout.show_thumbnails = FALSE; |
95 options->layout.style = 0; | |
96 options->layout.toolbar_hidden = FALSE; | |
97 options->layout.tools_float = FALSE; | |
98 options->layout.tools_hidden = FALSE; | |
99 options->layout.tools_restore_state = FALSE; | |
100 options->layout.view_as_icons = FALSE; | |
442 | 101 |
431 | 102 options->lazy_image_sync = FALSE; |
103 options->mousewheel_scrolls = FALSE; | |
104 options->open_recent_list_maxsize = 10; | |
105 options->place_dialogs_under_mouse = FALSE; | |
106 options->progressive_key_scrolling = FALSE; | |
107 options->show_icon_names = TRUE; | |
442 | 108 |
326 | 109 options->slideshow.delay = 150; |
110 options->slideshow.random = FALSE; | |
111 options->slideshow.repeat = FALSE; | |
442 | 112 |
431 | 113 options->startup_path_enable = FALSE; |
114 options->startup_path = NULL; | |
442 | 115 |
431 | 116 options->thumbnails.cache_into_dirs = FALSE; |
117 options->thumbnails.enable_caching = TRUE; | |
118 options->thumbnails.fast = TRUE; | |
119 options->thumbnails.max_height = DEFAULT_THUMB_HEIGHT; | |
120 options->thumbnails.max_width = DEFAULT_THUMB_WIDTH; | |
121 options->thumbnails.quality = (gint)GDK_INTERP_TILES; | |
122 options->thumbnails.spec_standard = TRUE; | |
123 options->thumbnails.use_xvpics = TRUE; | |
442 | 124 |
320 | 125 options->tree_descend_subdirs = FALSE; |
126 options->update_on_time_change = TRUE; | |
127 | |
318 | 128 return options; |
129 } |