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 | e245e7a9c21e3a79eb908e6f7e0c752bdac81e90 (patch) | |
tree | 2cf49a8c4790198294fe3f21ca56a469740237a8 /mixgtk/mixgtk_config.c | |
parent | 328838598d316f5c8469a69a820510059848377e (diff) | |
download | mdk-e245e7a9c21e3a79eb908e6f7e0c752bdac81e90.tar.gz mdk-e245e7a9c21e3a79eb908e6f7e0c752bdac81e90.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); } |