Mercurial > geeqie
annotate src/thumb_standard.h @ 1685:47b191b77e07
Revert "Add pgettext for some ambiguous strings"
Now there should be all ambiguous strings gone. This reverts commit 1628
With that commit also all ambiguous strings should be solved.
author | mow |
---|---|
date | Tue, 30 Jun 2009 19:53:55 +0000 |
parents | a6f9ba6fd751 |
children | 956aab097ea7 |
rev | line source |
---|---|
9 | 1 /* |
196 | 2 * Geeqie |
79
528e3432e0c0
Thu Oct 19 07:23:37 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
3 * (C) 2006 John Ellis |
1284 | 4 * Copyright (C) 2008 - 2009 The Geeqie Team |
9 | 5 * |
6 * Author: John Ellis | |
7 * | |
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! | |
11 */ | |
12 | |
13 | |
14 #ifndef THUMB_STANDARD_H | |
15 #define THUMB_STANDARD_H | |
16 | |
17 | |
79
528e3432e0c0
Thu Oct 19 07:23:37 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
18 #define THUMB_FOLDER_GLOBAL ".thumbnails" |
528e3432e0c0
Thu Oct 19 07:23:37 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
19 #define THUMB_FOLDER_LOCAL ".thumblocal" |
9 | 20 #define THUMB_FOLDER_NORMAL "normal" |
21 #define THUMB_FOLDER_LARGE "large" | |
728
5042236af960
Replace hardcoded "/" by G_DIR_SEPARATOR_S where applicable.
zas_
parents:
475
diff
changeset
|
22 #define THUMB_FOLDER_FAIL "fail" G_DIR_SEPARATOR_S GQ_APPNAME_LC "-" VERSION |
9 | 23 #define THUMB_NAME_EXTENSION ".png" |
24 | |
25 | |
26 typedef struct _ThumbLoaderStd ThumbLoaderStd; | |
27 typedef void (* ThumbLoaderStdFunc)(ThumbLoaderStd *tl, gpointer data); | |
28 | |
29 struct _ThumbLoaderStd | |
30 { | |
1446 | 31 gboolean standard_loader; |
9 | 32 |
33 ImageLoader *il; | |
838 | 34 FileData *fd; |
9 | 35 |
36 time_t source_mtime; | |
37 off_t source_size; | |
38 mode_t source_mode; | |
39 | |
40 gchar *thumb_path; | |
41 gchar *thumb_uri; | |
42 const gchar *local_uri; | |
43 | |
1446 | 44 gboolean thumb_path_local; |
9 | 45 |
46 gint requested_width; | |
47 gint requested_height; | |
48 | |
1446 | 49 gboolean cache_enable; |
50 gboolean cache_local; | |
51 gboolean cache_hit; | |
52 gboolean cache_retry; | |
9 | 53 |
54 gdouble progress; | |
55 | |
56 ThumbLoaderStdFunc func_done; | |
57 ThumbLoaderStdFunc func_error; | |
58 ThumbLoaderStdFunc func_progress; | |
59 | |
60 gpointer data; | |
61 }; | |
62 | |
63 | |
64 ThumbLoaderStd *thumb_loader_std_new(gint width, gint height); | |
65 void thumb_loader_std_set_callbacks(ThumbLoaderStd *tl, | |
66 ThumbLoaderStdFunc func_done, | |
67 ThumbLoaderStdFunc func_error, | |
68 ThumbLoaderStdFunc func_progress, | |
69 gpointer data); | |
1446 | 70 void thumb_loader_std_set_cache(ThumbLoaderStd *tl, gboolean enable_cache, gboolean local, gboolean retry_failed); |
71 gboolean thumb_loader_std_start(ThumbLoaderStd *tl, FileData *fd); | |
9 | 72 void thumb_loader_std_free(ThumbLoaderStd *tl); |
73 | |
864 | 74 GdkPixbuf *thumb_loader_std_get_pixbuf(ThumbLoaderStd *tl); |
9 | 75 |
76 | |
77 /* validates a non local thumbnail file, | |
78 * calling func_valid with the information when app is idle | |
79 * for thumbnail's without a file: uri, validates against allowed_age in days | |
80 */ | |
81 ThumbLoaderStd *thumb_loader_std_thumb_file_validate(const gchar *thumb_path, gint allowed_age, | |
1446 | 82 void (*func_valid)(const gchar *path, gboolean valid, gpointer data), |
9 | 83 gpointer data); |
84 void thumb_loader_std_thumb_file_validate_cancel(ThumbLoaderStd *tl); | |
85 | |
86 | |
87 void thumb_std_maint_removed(const gchar *source); | |
88 void thumb_std_maint_moved(const gchar *source, const gchar *dest); | |
89 | |
90 | |
91 #endif | |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
864
diff
changeset
|
92 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |