summaryrefslogtreecommitdiffhomepage
path: root/mixgtk/mixgtk.c
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-04-29 12:56:41 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-04-29 12:56:41 +0000
commite02ec068629bf1ce5c534432ae40479337cedfc4 (patch)
tree7b0290e28ba95591ee588044b34322d42d527abb /mixgtk/mixgtk.c
parentfef0865fae3728ed89b3403fbcc24cdd26ae1e46 (diff)
downloadmdk-e02ec068629bf1ce5c534432ae40479337cedfc4.tar.gz
mdk-e02ec068629bf1ce5c534432ae40479337cedfc4.tar.bz2
config file handling added
Diffstat (limited to 'mixgtk/mixgtk.c')
-rw-r--r--mixgtk/mixgtk.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/mixgtk/mixgtk.c b/mixgtk/mixgtk.c
index da67c7e..42002f2 100644
--- a/mixgtk/mixgtk.c
+++ b/mixgtk/mixgtk.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mixgtk.c :
* Main functions of the mix gtk front-end
* ------------------------------------------------------------------
- * Last change: Time-stamp: "2001-04-28 22:40:32 jao"
+ * Last change: Time-stamp: "2001-04-29 12:36:16 jao"
* ------------------------------------------------------------------
* Copyright (C) 2001 Free Software Foundation, Inc.
*
@@ -29,6 +29,7 @@
#include "mixgtk_input.h"
#include "mixgtk_colorsel.h"
#include "mixgtk_fontsel.h"
+#include "mixgtk_config.h"
#include "mixgtk.h"
@@ -42,6 +43,12 @@ mixgtk_init (int argc, char *argv[])
mix_init_lib ();
+ if (!mixgtk_config_load ())
+ {
+ g_error ("Unable to read configuration\n");
+ return FALSE;
+ }
+
if (!mixgtk_widget_factory_init (GLADE_FILE)
&& !mixgtk_widget_factory_init (LOCAL_GLADE_FILE))
{
@@ -97,5 +104,7 @@ mixgtk_init (int argc, char *argv[])
void
mixgtk_release (void)
{
+ if (mixgtk_config_is_autosave ()) mixgtk_config_save ();
+
mix_release_lib ();
}