From e02ec068629bf1ce5c534432ae40479337cedfc4 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 29 Apr 2001 12:56:41 +0000 Subject: config file handling added --- mixgtk/mixgtk.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'mixgtk/mixgtk.c') 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 (); } -- cgit v1.2.3