diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2001-06-24 13:06:53 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2001-06-24 13:06:53 +0000 |
commit | 444bde2e739d73c27418461fa001adb7b9ce83db (patch) | |
tree | 5e80f08c8f67e0e5dc6ae11a0e9a7af00949fca8 /mixgtk/mixgtk_config.c | |
parent | e19a76a225c19df1d7290ff1cf329dc577b892fe (diff) | |
download | mdk-444bde2e739d73c27418461fa001adb7b9ce83db.tar.gz mdk-444bde2e739d73c27418461fa001adb7b9ce83db.tar.bz2 |
split windows mode
Diffstat (limited to 'mixgtk/mixgtk_config.c')
-rw-r--r-- | mixgtk/mixgtk_config.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/mixgtk/mixgtk_config.c b/mixgtk/mixgtk_config.c index b886238..dfb1ad8 100644 --- a/mixgtk/mixgtk_config.c +++ b/mixgtk/mixgtk_config.c @@ -29,9 +29,13 @@ #include "mixgtk.h" #include "mixgtk_config.h" -#define CONFIG_FILENAME "config" -#define COMMENT_PREFIX '#' -#define AUTOSAVE_FLAG "Autosave" +static const gchar *CONFIG_FILENAME = "config"; +static const gchar COMMENT_PREFIX = '#'; +static const gchar *AUTOSAVE_FLAG = "Autosave"; +static const gchar *SPLIT_KEY = "Split"; +static const gchar *SPLIT_YES = "Yes"; +static const gchar *SPLIT_NO = "No"; + static GHashTable *items_; static gchar *config_ = NULL; @@ -147,3 +151,15 @@ mixgtk_config_save (void) +gboolean +mixgtk_config_is_split (void) +{ + const gchar *split = mixgtk_config_get (SPLIT_KEY); + return (split && !strcmp (split, SPLIT_YES)); +} + +void +mixgtk_config_set_split (gboolean split) +{ + mixgtk_config_update (SPLIT_KEY, split? SPLIT_YES : SPLIT_NO); +} |