diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2001-07-05 23:35:55 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2001-07-05 23:35:55 +0000 |
commit | 5071a7a4df62a7fe90ba1e3b4ddf539599668459 (patch) | |
tree | 4e5201773a694abcb5e4f97747e3194b93a54fa5 /mixgtk/mixgtk_config.c | |
parent | ff2facbdc12f86fb939baae406b82686c8a94eee (diff) | |
download | mdk-5071a7a4df62a7fe90ba1e3b4ddf539599668459.tar.gz mdk-5071a7a4df62a7fe90ba1e3b4ddf539599668459.tar.bz2 |
use of .mdk instead of .gmixvm
Diffstat (limited to 'mixgtk/mixgtk_config.c')
-rw-r--r-- | mixgtk/mixgtk_config.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mixgtk/mixgtk_config.c b/mixgtk/mixgtk_config.c index 267b443..ae96f2a 100644 --- a/mixgtk/mixgtk_config.c +++ b/mixgtk/mixgtk_config.c @@ -30,6 +30,7 @@ #include "mixgtk.h" #include "mixgtk_config.h" +static const gchar *MIXGTK_CONFIG_FILE_ = "gmixvm.config"; static const gchar *SPLIT_KEY = "Split"; static const gchar *SPLIT_YES = "Yes"; static const gchar *SPLIT_NO = "No"; @@ -40,7 +41,13 @@ static mix_config_t *config_ = NULL; gboolean mixgtk_config_load (void) { - if (config_ == NULL) config_ = mix_config_new (NULL, NULL); + if (config_ == NULL) + { + gchar *cdir = g_strconcat (g_get_home_dir (), G_DIR_SEPARATOR_S, + MIXGTK_FILES_DIR, NULL); + config_ = mix_config_new (cdir, MIXGTK_CONFIG_FILE_); + g_free (cdir); + } return (config_ != NULL); } |