annotate src/main.h @ 296:a00a7ef75f74

Resync .po files. French translation was updated (100% made).
author zas_
date Wed, 09 Apr 2008 22:47:43 +0000
parents 6a7298988a7a
children b16b9b8979e5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
1 /*
196
f6e307c7bad6 rename GQview -> Geeqie over the code
nadvornik
parents: 195
diff changeset
2 * Geeqie
67
f63ecca6c087 Fri Oct 13 05:22:43 2006 John Ellis <johne@verizon.net>
gqview
parents: 14
diff changeset
3 * (C) 2006 John Ellis
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
4 *
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
5 * Author: John Ellis
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
6 *
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
7 * This software is released under the GNU General Public License (GNU GPL).
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
8 * Please read the included file COPYING for more information.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
9 * This software comes with no warranty of any kind, use at your own risk!
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
10 */
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
11
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
12
282
c2cb12def9d6 GQVIEW_H -> MAIN_H
zas_
parents: 281
diff changeset
13 #ifndef MAIN_H
c2cb12def9d6 GQVIEW_H -> MAIN_H
zas_
parents: 281
diff changeset
14 #define MAIN_H
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
15
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
16 #ifdef HAVE_CONFIG_H
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
17 # include "config.h"
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
18 #endif
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
19
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
20 #ifdef HAVE_STRVERSCMP
213
28f2274c9bd0 Fix two minor compilation warnings.
zas_
parents: 209
diff changeset
21 # ifndef _GNU_SOURCE
28f2274c9bd0 Fix two minor compilation warnings.
zas_
parents: 209
diff changeset
22 # define _GNU_SOURCE
28f2274c9bd0 Fix two minor compilation warnings.
zas_
parents: 209
diff changeset
23 # endif
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
24 #endif
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
25
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
26 #include "intl.h"
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
27
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
28 /*
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
29 *-------------------------------------
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
30 * Standard library includes
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
31 *-------------------------------------
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
32 */
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
33
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
34 #include <pwd.h>
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
35 #include <stdio.h>
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
36 #include <stdlib.h>
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
37 #include <string.h>
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
38 #include <time.h>
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
39 #include <unistd.h>
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
40 #include <sys/stat.h>
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
41 #include <sys/time.h>
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
42 #include <sys/types.h>
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
43 #include <dirent.h>
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
44 #include <fcntl.h>
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
45
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
46 /*
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
47 *-------------------------------------
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
48 * includes for glib / gtk / gdk-pixbuf
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
49 *-------------------------------------
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
50 */
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
51
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
52 #include <gdk/gdk.h>
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
53 #include <gtk/gtk.h>
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
54
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
55 #include <gdk-pixbuf/gdk-pixbuf.h>
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
56 #include <gdk-pixbuf/gdk-pixbuf-loader.h>
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
57
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
58
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
59 /*
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
60 *----------------------------------------------------------------------------
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
61 * defines
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
62 *----------------------------------------------------------------------------
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
63 */
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
64
288
d1f74154463e Replace occurences of Geeqie / geeqie by constants defined in main.h.
zas_
parents: 283
diff changeset
65 #define GQ_APPNAME "Geeqie"
d1f74154463e Replace occurences of Geeqie / geeqie by constants defined in main.h.
zas_
parents: 283
diff changeset
66 #define GQ_APPNAME_LC "geeqie"
d1f74154463e Replace occurences of Geeqie / geeqie by constants defined in main.h.
zas_
parents: 283
diff changeset
67 #define GQ_WEBSITE "geeqie.sourceforge.net"
d1f74154463e Replace occurences of Geeqie / geeqie by constants defined in main.h.
zas_
parents: 283
diff changeset
68 #define GQ_EMAIL_ADDRESS "geeqie-devel@lists.sourceforge.net"
254
9faf34f047b1 Make the wmclass value unique among the code by defining
zas_
parents: 243
diff changeset
69
288
d1f74154463e Replace occurences of Geeqie / geeqie by constants defined in main.h.
zas_
parents: 283
diff changeset
70 #define GQ_WMCLASS GQ_APPNAME_LC
d1f74154463e Replace occurences of Geeqie / geeqie by constants defined in main.h.
zas_
parents: 283
diff changeset
71
d1f74154463e Replace occurences of Geeqie / geeqie by constants defined in main.h.
zas_
parents: 283
diff changeset
72 #define GQ_RC_DIR "." GQ_APPNAME_LC
283
e213fb025621 GQVIEW_* -> GQ_*
zas_
parents: 282
diff changeset
73 #define GQ_RC_DIR_COLLECTIONS GQ_RC_DIR"/collections"
e213fb025621 GQVIEW_* -> GQ_*
zas_
parents: 282
diff changeset
74 #define GQ_RC_DIR_TRASH GQ_RC_DIR"/trash"
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
75
288
d1f74154463e Replace occurences of Geeqie / geeqie by constants defined in main.h.
zas_
parents: 283
diff changeset
76 #define RC_FILE_NAME GQ_APPNAME_LC "rc"
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
77
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
78 #define ZOOM_RESET_ORIGINAL 0
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
79 #define ZOOM_RESET_FIT_WINDOW 1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
80 #define ZOOM_RESET_NONE 2
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
81
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
82 #define SCROLL_RESET_TOPLEFT 0
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
83 #define SCROLL_RESET_CENTER 1
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
84 #define SCROLL_RESET_NOCHANGE 2
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
85
4
e149abcda4eb Syncing to 0.8.1
gqview
parents: 3
diff changeset
86 #define MOUSEWHEEL_SCROLL_SIZE 20
e149abcda4eb Syncing to 0.8.1
gqview
parents: 3
diff changeset
87
283
e213fb025621 GQVIEW_* -> GQ_*
zas_
parents: 282
diff changeset
88 #define GQ_EDITOR_GENERIC_SLOTS 10
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
89
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 91
diff changeset
90 #define COLOR_PROFILE_INPUTS 4
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 91
diff changeset
91
226
3c89da4aef95 Fix and simplify thumbnails size combo box related code.
zas_
parents: 218
diff changeset
92 #define DEFAULT_THUMB_WIDTH 96
3c89da4aef95 Fix and simplify thumbnails size combo box related code.
zas_
parents: 218
diff changeset
93 #define DEFAULT_THUMB_HEIGHT 72
3c89da4aef95 Fix and simplify thumbnails size combo box related code.
zas_
parents: 218
diff changeset
94
227
41fc4bfc8b25 Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents: 226
diff changeset
95 #if 1 /* set to 0 to disable debugging code and related options */
41fc4bfc8b25 Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents: 226
diff changeset
96 # ifndef DEBUG
41fc4bfc8b25 Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents: 226
diff changeset
97 # define DEBUG 1
41fc4bfc8b25 Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents: 226
diff changeset
98 # endif
41fc4bfc8b25 Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents: 226
diff changeset
99 #endif
41fc4bfc8b25 Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents: 226
diff changeset
100 #ifndef DEBUG
41fc4bfc8b25 Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents: 226
diff changeset
101 # define debug 0
41fc4bfc8b25 Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents: 226
diff changeset
102 #endif
226
3c89da4aef95 Fix and simplify thumbnails size combo box related code.
zas_
parents: 218
diff changeset
103
134
9009856628f7 started implementation of external commands; external Delete should work
nadvornik
parents: 113
diff changeset
104 #include "typedefs.h"
9009856628f7 started implementation of external commands; external Delete should work
nadvornik
parents: 113
diff changeset
105
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
106 /*
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
107 *----------------------------------------------------------------------------
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
108 * globals
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
109 *----------------------------------------------------------------------------
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
110 */
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
111
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
112 /*
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
113 * Since globals are used everywhere,
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
114 * it is easier to define them here.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
115 */
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
116
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
117 extern GList *filename_filter;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
118
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
119 /* -- options -- */
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
120 extern gint main_window_w;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
121 extern gint main_window_h;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
122 extern gint main_window_x;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
123 extern gint main_window_y;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
124 extern gint main_window_maximized;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
125
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
126 extern gint float_window_w;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
127 extern gint float_window_h;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
128 extern gint float_window_x;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
129 extern gint float_window_y;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
130 extern gint float_window_divider;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
131
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
132 extern gint window_hdivider_pos;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
133 extern gint window_vdivider_pos;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
134
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
135 extern gint save_window_positions;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
136 extern gint tools_float;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
137 extern gint tools_hidden;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
138 extern gint toolbar_hidden;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
139 extern gint progressive_key_scrolling;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
140
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
141 extern gint startup_path_enable;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
142 extern gchar *startup_path;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
143 extern gint confirm_delete;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
144 extern gint enable_delete_key;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
145 extern gint safe_delete_enable;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
146 extern gchar *safe_delete_path;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
147 extern gint safe_delete_size;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
148 extern gint restore_tool;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
149 extern gint zoom_mode;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
150 extern gint two_pass_zoom;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
151 extern gint scroll_reset_method;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
152 extern gint fit_window;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
153 extern gint limit_window_size;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
154 extern gint zoom_to_fit_expands;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
155 extern gint max_window_size;
209
ad78ad18523a configurable frame around image - geeqie_autofit_maxsize.patch by Laurent MONIN
nadvornik
parents: 208
diff changeset
156 extern gint limit_autofit_size;
ad78ad18523a configurable frame around image - geeqie_autofit_maxsize.patch by Laurent MONIN
nadvornik
parents: 208
diff changeset
157 extern gint max_autofit_size;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
158 extern gint thumb_max_width;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
159 extern gint thumb_max_height;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
160 extern gint enable_thumb_caching;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
161 extern gint enable_thumb_dirs;
14
25335c62cd9b ##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents: 9
diff changeset
162 extern gint thumbnail_fast;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
163 extern gint use_xvpics_thumbnails;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
164 extern gint thumbnail_spec_standard;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
165 extern gint enable_metadata_dirs;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
166 extern gint show_dot_files;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
167 extern gint file_filter_disable;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
168 extern gchar *editor_name[];
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
169 extern gchar *editor_command[];
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
170
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
171 extern gint thumbnails_enabled;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
172 extern SortType file_sort_method;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
173 extern gint file_sort_ascending;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
174
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
175 extern gint slideshow_delay; /* in tenths of a second */
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
176 extern gint slideshow_random;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
177 extern gint slideshow_repeat;
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
178
4
e149abcda4eb Syncing to 0.8.1
gqview
parents: 3
diff changeset
179 extern gint mousewheel_scrolls;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
180 extern gint enable_in_place_rename;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
181
208
fa0e05f985c3 set user-defined color as image background - patch by Laurent MONIN
nadvornik
parents: 196
diff changeset
182 extern gint user_specified_window_background;
fa0e05f985c3 set user-defined color as image background - patch by Laurent MONIN
nadvornik
parents: 196
diff changeset
183 extern GdkColor window_background_color;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
184
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
185 extern gint fullscreen_screen;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
186 extern gint fullscreen_clean_flip;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
187 extern gint fullscreen_disable_saver;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
188 extern gint fullscreen_above;
218
f4a0555794a9 Customizable info overlay in fullscreen, based on the patch posted to gqview-devel list by Timo on 2007-09-10.
zas_
parents: 213
diff changeset
189 extern gint show_fullscreen_info;
f4a0555794a9 Customizable info overlay in fullscreen, based on the patch posted to gqview-devel list by Timo on 2007-09-10.
zas_
parents: 213
diff changeset
190 extern gchar *fullscreen_info;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
191
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
192 extern gint dupe_custom_threshold;
4
e149abcda4eb Syncing to 0.8.1
gqview
parents: 3
diff changeset
193
227
41fc4bfc8b25 Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents: 226
diff changeset
194 #ifdef DEBUG
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
195 extern gint debug;
227
41fc4bfc8b25 Add a debug level spinner at the end of Preferences > Advanced.
zas_
parents: 226
diff changeset
196 #endif
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
197
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
198 extern gint recent_list_max;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
199
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
200 extern gint collection_rectangular_selection;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
201
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
202 extern gint tile_cache_max; /* in megabytes */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
203 extern gint thumbnail_quality;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
204 extern gint zoom_quality;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
205 extern gint dither_quality;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
206
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
207 extern gint zoom_increment; /* 10 is 1.0, 5 is 0.05, 20 is 2.0, etc. */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
208
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
209 extern gint enable_read_ahead;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
210
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
211 extern gint place_dialogs_under_mouse;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
212
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
213 /* layout */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
214 extern gchar *layout_order;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
215 extern gint layout_style;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
216
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
217 extern gint layout_view_icons;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
218 extern gint layout_view_tree;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
219
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
220 extern gint show_icon_names;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
221
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
222 extern gint tree_descend_subdirs;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
223
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
224 extern gint lazy_image_sync;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
225 extern gint update_on_time_change;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
226 extern gint exif_rotate_enable;
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
227
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 91
diff changeset
228 extern gint color_profile_enabled;
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 91
diff changeset
229 extern gint color_profile_input_type;
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 91
diff changeset
230 extern gchar *color_profile_input_file[];
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 91
diff changeset
231 extern gchar *color_profile_input_name[];
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 91
diff changeset
232 extern gint color_profile_screen_type;
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 91
diff changeset
233 extern gchar *color_profile_screen_file;
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 91
diff changeset
234 extern gint color_profile_use_image;
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 91
diff changeset
235
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
236 /*
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
237 *----------------------------------------------------------------------------
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
238 * main.c
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
239 *----------------------------------------------------------------------------
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
240 */
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
241
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
242 /*
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
243 * This also doubles as the main.c header.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
244 */
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
245
289
6a7298988a7a Simplify and unify gtk_window creation with the help of
zas_
parents: 288
diff changeset
246 GtkWidget *window_new(GtkWindowType type, const gchar *name, const gchar *icon,
6a7298988a7a Simplify and unify gtk_window creation with the help of
zas_
parents: 288
diff changeset
247 const gchar *icon_file, const gchar *subtitle);
91
d063f97503b7 Wed Nov 1 11:39:48 2006 John Ellis <johne@verizon.net>
gqview
parents: 67
diff changeset
248 void window_set_icon(GtkWidget *window, const gchar *icon, const gchar *file);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
249 gint window_maximized(GtkWidget *window);
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
250
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
251 gdouble get_zoom_increment(void);
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
252
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
253 void help_window_show(const gchar *key);
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
254
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
255 void keyboard_scroll_calc(gint *x, gint *y, GdkEventKey *event);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
256 gint key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
278
04abf5b160eb exit_gqview() renamed to exit_program().
zas_
parents: 254
diff changeset
257 void exit_program(void);
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
258
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
259
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 4
diff changeset
260 #endif
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
261
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
262
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
263