X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-conf.h;h=5f4b283af5c2cf0f87bc9ccdd0d2d27aa8ff2902;hb=158b6b7f7f3c1ea4ea4443ecb87d2a980808577b;hp=f98c25a095689e132962a96ca23dda2f8d8bcacd;hpb=b4b7591371add6dac8c191a522be4a43ef25b7eb;p=pspp diff --git a/src/ui/gui/psppire-conf.h b/src/ui/gui/psppire-conf.h index f98c25a095..5f4b283af5 100644 --- a/src/ui/gui/psppire-conf.h +++ b/src/ui/gui/psppire-conf.h @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2009 Free Software Foundation + Copyright (C) 2009, 2010 Free Software Foundation This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,6 +18,8 @@ #include #include +#include + #ifndef __PSPPIRE_CONF_H__ #define __PSPPIRE_CONF_H__ @@ -60,6 +62,7 @@ struct _PsppireConf GKeyFile *keyfile; gchar *filename; + guint idle; }; @@ -76,10 +79,53 @@ PsppireConf * psppire_conf_new (void); gboolean psppire_conf_get_int (PsppireConf *, const gchar *, const gchar *, int *); +gboolean psppire_conf_get_string (PsppireConf *, + const gchar *, const gchar *, gchar **); + +gboolean psppire_conf_get_boolean (PsppireConf *, + const gchar *, const gchar *, gboolean *); + + +gboolean psppire_conf_get_variant (PsppireConf *, + const gchar *, const gchar *, GVariant **); + + +gboolean psppire_conf_get_enum (PsppireConf *conf, const gchar *base, + const gchar *name, + GType t, + int *v); + void psppire_conf_set_int (PsppireConf *conf, const gchar *base, const gchar *name, gint value); +void psppire_conf_set_boolean (PsppireConf *conf, + const gchar *base, const gchar *name, + gboolean value); + +void psppire_conf_set_string (PsppireConf *conf, + const gchar *base, const gchar *name, + const gchar *value); + + +void psppire_conf_set_variant (PsppireConf *conf, + const gchar *base, const gchar *name, + GVariant *value); + + +void psppire_conf_set_enum (PsppireConf *conf, + const gchar *base, const gchar *name, + GType enum_type, + int value); + +void psppire_conf_set_window_geometry (PsppireConf *conf, + const gchar *base, + GtkWindow *window); + +void psppire_conf_save_window_geometry (PsppireConf *, + const gchar *, + GtkWindow *); + G_END_DECLS