X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Fpsppire-conf.h;h=de8db9397da3b650af9b7b53572b11884ef40295;hb=refs%2Fheads%2Fctables7;hp=7e9ab6ad127d1cdf69f04f0ea2daa38b7fc9daaa;hpb=2d983f3e5bd2d5f531cbcbdcebe078034ddb8955;p=pspp diff --git a/src/ui/gui/psppire-conf.h b/src/ui/gui/psppire-conf.h index 7e9ab6ad12..de8db9397d 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,7 +18,7 @@ #include #include -#include +#include #ifndef __PSPPIRE_CONF_H__ #define __PSPPIRE_CONF_H__ @@ -58,11 +58,10 @@ struct _PsppireConf GObject parent; /*< private >*/ - gboolean dispose_has_run ; GKeyFile *keyfile; - GMutex *mutex; gchar *filename; + guint idle; }; @@ -79,9 +78,22 @@ 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); @@ -90,6 +102,20 @@ 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, @@ -97,7 +123,7 @@ void psppire_conf_set_window_geometry (PsppireConf *conf, void psppire_conf_save_window_geometry (PsppireConf *, const gchar *, - GdkEvent *); + GtkWindow *); G_END_DECLS