Mercurial > geeqie.yaz
annotate src/bar_exif.h @ 523:0717bcc4f2b7
Handle the case of reduction of the number of view directory types.
Previously it was leading to a segfault.
author | zas_ |
---|---|
date | Fri, 25 Apr 2008 08:07:22 +0000 |
parents | 48c8e49b571c |
children | b50deb0f9968 |
rev | line source |
---|---|
9 | 1 /* |
196 | 2 * Geeqie |
9 | 3 * (C) 2004 John Ellis |
475 | 4 * Copyright (C) 2008 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 BAR_EXIF_H | |
15 #define BAR_EXIF_H | |
16 | |
222
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
17 #define EXIF_UI_OFF 0 |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
18 #define EXIF_UI_IFSET 1 |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
19 #define EXIF_UI_ON 2 |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
20 |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
21 typedef struct _ExifUI ExifUI; |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
22 struct _ExifUI { |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
23 gint current; |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
24 gint temp; |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
25 gint default_value; |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
26 const gchar *key; |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
27 }; |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
28 extern ExifUI ExifUIList[]; |
77f1bcc6c161
various exif improvements based on patch by Uwe Ohse
nadvornik
parents:
196
diff
changeset
|
29 |
9 | 30 |
138 | 31 GtkWidget *bar_exif_new(gint show_title, FileData *fd, gint advanced, GtkWidget *bounding_widget); |
9 | 32 void bar_exif_close(GtkWidget *bar); |
33 | |
138 | 34 void bar_exif_set(GtkWidget *bar, FileData *fd); |
9 | 35 |
36 gint bar_exif_is_advanced(GtkWidget *bar); | |
37 | |
38 | |
95
eb9bb29cbd65
Fri Nov 3 11:40:48 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
39 /* these are exposed for when duplication of the exif bar's text is needed */ |
eb9bb29cbd65
Fri Nov 3 11:40:48 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
40 |
eb9bb29cbd65
Fri Nov 3 11:40:48 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
41 const gchar **bar_exif_key_list; |
eb9bb29cbd65
Fri Nov 3 11:40:48 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
42 const gint bar_exif_key_count; |
eb9bb29cbd65
Fri Nov 3 11:40:48 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
43 |
eb9bb29cbd65
Fri Nov 3 11:40:48 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
44 gchar *bar_exif_validate_text(gchar *text); |
eb9bb29cbd65
Fri Nov 3 11:40:48 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
45 |
eb9bb29cbd65
Fri Nov 3 11:40:48 2006 John Ellis <johne@verizon.net>
gqview
parents:
9
diff
changeset
|
46 |
9 | 47 #endif |