Mercurial > geeqie.yaz
annotate src/bar_info.h @ 276:4f526d436873
Implement secure rc file saving.
First data is written to a temporary file, then if nothing
was wrong, this file is renamed to the final name.
This way the risk of corrupted rc file is greatly reduced.
The code is borrowed from ELinks (http://elinks.cz).
author | zas_ |
---|---|
date | Tue, 08 Apr 2008 21:55:58 +0000 |
parents | f6e307c7bad6 |
children | 48c8e49b571c |
rev | line source |
---|---|
9 | 1 /* |
196 | 2 * Geeqie |
9 | 3 * (C) 2004 John Ellis |
4 * | |
5 * Author: John Ellis | |
6 * | |
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! | |
10 */ | |
11 | |
12 | |
13 #ifndef BAR_INFO_H | |
14 #define BAR_INFO_H | |
15 | |
16 | |
138 | 17 GtkWidget *bar_info_new(FileData *fd, gint metadata_only, GtkWidget *bounding_widget); |
9 | 18 void bar_info_close(GtkWidget *bar); |
19 | |
138 | 20 void bar_info_set(GtkWidget *bar, FileData *fd); |
9 | 21 gint bar_info_event(GtkWidget *bar, GdkEvent *event); |
22 | |
23 void bar_info_set_selection_func(GtkWidget *bar, GList *(*list_func)(gpointer data), gpointer data); | |
24 void bar_info_selection(GtkWidget *bar, gint count); | |
25 | |
26 void bar_info_size_request(GtkWidget *bar, gint width); | |
27 | |
138 | 28 void bar_info_maint_renamed(GtkWidget *bar, FileData *fd); |
9 | 29 |
188
0584cb78aa14
write comment and keywords to xmp, sidecars are used if exist
nadvornik
parents:
138
diff
changeset
|
30 gint comment_write(FileData *fd, GList *keywords, const gchar *comment); |
9 | 31 |
188
0584cb78aa14
write comment and keywords to xmp, sidecars are used if exist
nadvornik
parents:
138
diff
changeset
|
32 gint comment_read(FileData *fd, GList **keywords, gchar **comment); |
9 | 33 |
34 GList *keyword_list_pull(GtkWidget *text_widget); | |
35 void keyword_list_push(GtkWidget *textview, GList *list); | |
36 | |
37 | |
38 #endif |