From e245e7a9c21e3a79eb908e6f7e0c752bdac81e90 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Thu, 5 Jul 2001 23:35:55 +0000 Subject: use of .mdk instead of .gmixvm --- mixgtk/mixgtk_config.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mixgtk/mixgtk_config.c') 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); } -- cgit v1.2.3