summaryrefslogtreecommitdiffhomepage
path: root/mixgtk/mixgtk.c
diff options
context:
space:
mode:
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 ();
}