diff src/rcfile.c @ 742:a336b5545af6

Pass ConfOptions * to save_options() and load_options().
author zas_
date Thu, 22 May 2008 23:22:12 +0000
parents 0e8b802e54d5
children 77ff94c0490a
line wrap: on
line diff
--- a/src/rcfile.c	Thu May 22 23:17:26 2008 +0000
+++ b/src/rcfile.c	Thu May 22 23:22:12 2008 +0000
@@ -292,7 +292,7 @@
  *-----------------------------------------------------------------------------
  */
 
-static gboolean save_options_to(const gchar *utf8_path)
+static gboolean save_options_to(const gchar *utf8_path, ConfOptions *options)
 {
 	SecureSaveInfo *ssi;
 	gchar *rc_pathl;
@@ -594,12 +594,12 @@
 	return TRUE;
 }
 
-void save_options(void)
+void save_options(ConfOptions *options)
 {
 	gchar *rc_path;
 
 	rc_path = g_build_filename(homedir(), GQ_RC_DIR, RC_FILE_NAME, NULL);
-	save_options_to(rc_path);
+	save_options_to(rc_path, options);
 	g_free(rc_path);
 }
 
@@ -630,7 +630,7 @@
 
 
 
-static gboolean load_options_from(const gchar *utf8_path)
+static gboolean load_options_from(const gchar *utf8_path, ConfOptions *options)
 {
 	FILE *f;
 	gchar *rc_pathl;
@@ -922,11 +922,11 @@
 	return TRUE;
 }
 
-void load_options(void)
+void load_options(ConfOptions *options)
 {
 	gchar *rc_path;
 
 	rc_path = g_build_filename(homedir(), GQ_RC_DIR, RC_FILE_NAME, NULL);
-	load_options_from(rc_path);
+	load_options_from(rc_path, options);
 	g_free(rc_path);
 }