Mercurial > geeqie.yaz
annotate src/globals.c @ 319:f9611a6cf0e2
Move file_sort_case_sensitive to ConfOptions.
author | zas_ |
---|---|
date | Fri, 11 Apr 2008 22:27:54 +0000 |
parents | b16b9b8979e5 |
children | c74af1cbd61a |
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 |
318 | 15 GList *filename_filter = NULL; |
1 | 16 |
318 | 17 ConfOptions *init_options(ConfOptions *options) |
18 { | |
19 if (!options) options = g_new0(ConfOptions, 1); | |
20 | |
21 options->main_window_w = 500; | |
22 options->main_window_h = 400; | |
23 options->main_window_x = 0; | |
24 options->main_window_y = 0; | |
25 options->main_window_maximized = FALSE; | |
26 | |
27 options->float_window_w = 260; | |
28 options->float_window_h = 450; | |
29 options->float_window_x = 0; | |
30 options->float_window_y = 0; | |
31 options->float_window_divider = -1; | |
32 | |
33 options->window_hdivider_pos = -1; | |
34 options->window_vdivider_pos = 200; | |
35 | |
36 options->save_window_positions = FALSE; | |
37 options->tools_float = FALSE; | |
38 options->tools_hidden = FALSE; | |
39 options->toolbar_hidden = FALSE; | |
40 options->progressive_key_scrolling = FALSE; | |
41 | |
42 options->startup_path_enable = FALSE; | |
43 options->startup_path = NULL; | |
44 options->confirm_delete = TRUE; | |
45 options->enable_delete_key = TRUE; | |
46 options->safe_delete_enable = FALSE; | |
47 options->safe_delete_path = NULL; | |
48 options->safe_delete_size = 128; | |
49 options->restore_tool = FALSE; | |
50 options->zoom_mode = ZOOM_RESET_ORIGINAL; | |
51 options->two_pass_zoom = TRUE; | |
52 options->scroll_reset_method = SCROLL_RESET_TOPLEFT; | |
53 options->fit_window = FALSE; | |
54 options->limit_window_size = FALSE; | |
55 options->zoom_to_fit_expands = TRUE; | |
56 options->max_window_size = 100; | |
57 options->limit_autofit_size = FALSE; | |
58 options->max_autofit_size = 100; | |
59 options->thumb_max_width = DEFAULT_THUMB_WIDTH; | |
60 options->thumb_max_height = DEFAULT_THUMB_HEIGHT; | |
61 options->enable_thumb_caching = TRUE; | |
62 options->enable_thumb_dirs = FALSE; | |
63 options->use_xvpics_thumbnails = TRUE; | |
64 options->thumbnail_fast = TRUE; | |
65 options->thumbnail_spec_standard = TRUE; | |
66 options->enable_metadata_dirs = FALSE; | |
67 options->show_dot_files = FALSE; | |
68 options->file_filter_disable = FALSE; | |
69 | |
70 | |
71 options->thumbnails_enabled = FALSE; | |
72 options->file_sort_method = SORT_NAME; | |
73 options->file_sort_ascending = TRUE; | |
74 | |
75 options->slideshow_delay = 150; | |
76 options->slideshow_random = FALSE; | |
77 options->slideshow_repeat = FALSE; | |
78 | |
79 options->mousewheel_scrolls = FALSE; | |
80 options->enable_in_place_rename = TRUE; | |
81 | |
82 options->recent_list_max = 10; | |
83 | |
84 options->collection_rectangular_selection = FALSE; | |
85 | |
86 options->tile_cache_max = 10; | |
87 options->thumbnail_quality = (gint)GDK_INTERP_TILES; | |
88 options->zoom_quality = (gint)GDK_INTERP_BILINEAR; | |
89 options->dither_quality = (gint)GDK_RGB_DITHER_NORMAL; | |
90 | |
91 options->zoom_increment = 5; | |
92 | |
93 options->enable_read_ahead = TRUE; | |
94 | |
95 options->place_dialogs_under_mouse = FALSE; | |
96 | |
97 options->user_specified_window_background = FALSE; | |
98 memset(&options->window_background_color, 0, sizeof(options->window_background_color)); | |
99 | |
100 options->fullscreen_screen = -1; | |
101 options->fullscreen_clean_flip = FALSE; | |
102 options->fullscreen_disable_saver = TRUE; | |
103 options->fullscreen_above = FALSE; | |
104 options->show_fullscreen_info = TRUE; | |
105 options->fullscreen_info = NULL; | |
106 | |
107 options->dupe_custom_threshold = 99; | |
108 | |
319 | 109 options->file_sort_case_sensitive = FALSE; |
110 | |
318 | 111 return options; |
112 } | |
1 | 113 |
114 /* -- options -- */ | |
227
41fc4bfc8b25
Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents:
226
diff
changeset
|
115 #ifdef DEBUG |
1 | 116 gint debug = FALSE; |
227
41fc4bfc8b25
Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents:
226
diff
changeset
|
117 #endif |
1 | 118 |
318 | 119 |
9 | 120 /* layout */ |
121 gchar *layout_order = NULL; | |
122 gint layout_style = 0; | |
123 | |
124 gint layout_view_icons = FALSE; | |
125 gint layout_view_tree = FALSE; | |
1 | 126 |
9 | 127 gint show_icon_names = TRUE; |
1 | 128 |
9 | 129 gint tree_descend_subdirs = FALSE; |
130 | |
131 gint lazy_image_sync = FALSE; | |
132 gint update_on_time_change = TRUE; | |
285 | 133 gint exif_rotate_enable = TRUE; |
9 | 134 |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
14
diff
changeset
|
135 /* color profiles */ |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
14
diff
changeset
|
136 gint color_profile_enabled = FALSE; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
14
diff
changeset
|
137 gint color_profile_input_type = 0; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
14
diff
changeset
|
138 gchar *color_profile_input_file[COLOR_PROFILE_INPUTS]; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
14
diff
changeset
|
139 gchar *color_profile_input_name[COLOR_PROFILE_INPUTS]; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
14
diff
changeset
|
140 gint color_profile_screen_type = 0; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
14
diff
changeset
|
141 gchar *color_profile_screen_file = NULL; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
14
diff
changeset
|
142 gint color_profile_use_image = TRUE; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
14
diff
changeset
|
143 |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
14
diff
changeset
|
144 |