Mercurial > geeqie.yaz
view src/layout_config.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 | ddabc4873a3f |
line wrap: on
line source
/* * Geeqie * (C) 2004 John Ellis * * Author: John Ellis * * This software is released under the GNU General Public License (GNU GPL). * Please read the included file COPYING for more information. * This software comes with no warranty of any kind, use at your own risk! */ #ifndef LAYOUT_CONFIG_H #define LAYOUT_CONFIG_H #include "layout.h" GtkWidget *layout_config_new(void); void layout_config_set(GtkWidget *widget, gint style, const gchar *order); gchar *layout_config_get(GtkWidget *widget, gint *style); gchar *layout_config_order_to_text(gint a, gint b, gint c); void layout_config_order_from_text(const gchar *text, gint *a, gint *b, gint *c); void layout_config_parse(gint style, const gchar *order, LayoutLocation *a, LayoutLocation *b, LayoutLocation *c); #endif