changeset 5593:b07aa997ddd8

[gaim-migrate @ 5997] We don't actually need to call save_prefs() anymore. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 31 May 2003 08:42:55 +0000
parents 57165429ed73
children cb39185b49c8
files src/away.c src/dialogs.c src/gaimrc.c src/gtkpounce.c src/gtkprefs.c src/log.c src/session.c
diffstat 7 files changed, 2 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/away.c	Sat May 31 08:39:12 2003 +0000
+++ b/src/away.c	Sat May 31 08:42:55 2003 +0000
@@ -319,7 +319,6 @@
 	away_messages = g_slist_remove(away_messages, a);
 	g_free(a);
 	do_away_menu();
-	save_prefs();
 }
 
 static void set_gc_away(GObject *obj, GaimConnection *gc)
--- a/src/dialogs.c	Sat May 31 08:39:12 2003 +0000
+++ b/src/dialogs.c	Sat May 31 08:42:55 2003 +0000
@@ -1937,8 +1937,6 @@
 		strncpy_withhtml(b->account->user_info, junk, sizeof b->account->user_info);
 		gc = b->account->gc;
 
-		save_prefs();
-
 		if (gc)
 			serv_set_info(gc, b->account->user_info);
 	}
@@ -2152,7 +2150,6 @@
 
 	serv_change_passwd(b->gc, orig, new1);
 	g_snprintf(b->gc->account->password, sizeof(b->gc->account->password), "%s", new1);
-	save_prefs();
 
 	destroy_dialog(NULL, b->window);
 	g_free(b);
@@ -2553,7 +2550,6 @@
 			gaim_conversation_set_logging(c, TRUE);
 	}
 
-	save_prefs();
 	cancel_log(NULL, c);
 }
 
@@ -3311,7 +3307,6 @@
 		away_messages = g_slist_insert_sorted(away_messages, am, sort_awaymsg_list);
 	}
 
-	save_prefs();
 	do_away_menu(NULL);
 
 	return am;
@@ -5071,8 +5066,6 @@
                 strncpy(b->account->user_info, tmp, sizeof b->account->user_info);
                 gc = b->account->gc;
 
-                save_prefs();
-
                 if (gc)
                         serv_set_info(gc, b->account->user_info);
         }
--- a/src/gaimrc.c	Sat May 31 08:39:12 2003 +0000
+++ b/src/gaimrc.c	Sat May 31 08:42:55 2003 +0000
@@ -1349,7 +1349,6 @@
 		if (request_save_prefs) {
 			gaim_debug(GAIM_DEBUG_INFO, "gaimrc",
 					   "Saving preferences on request\n");
-			save_prefs();
 			request_save_prefs = 0;
 		}
 	} else if (opt_rcfile_arg) {
@@ -1358,7 +1357,6 @@
 		set_defaults();
 	} else {
 		set_defaults();
-		save_prefs();
 	}
 
 	prefs_initial_load = 1;
@@ -1420,5 +1418,5 @@
 	 * <      faceprint> ChipX86|Coding: because we're cool like that
 	 * <SeanEgan|Coding> damn straight
 	 */
-	save_prefs();
+	/* save_prefs(); -- I like the above comment :( */
 }
--- a/src/gtkpounce.c	Sat May 31 08:39:12 2003 +0000
+++ b/src/gtkpounce.c	Sat May 31 08:42:55 2003 +0000
@@ -263,8 +263,6 @@
 
 		gaim_gtkpounce_menu_build(gtkblist->bpmenu);
 	}
-
-	save_prefs();
 }
 
 static void
@@ -427,8 +425,6 @@
 
 		gaim_gtkpounce_menu_build(gtkblist->bpmenu);
 	}
-
-	save_prefs();
 }
 
 struct gaim_pounce *
--- a/src/gtkprefs.c	Sat May 31 08:39:12 2003 +0000
+++ b/src/gtkprefs.c	Sat May 31 08:42:55 2003 +0000
@@ -359,7 +359,6 @@
 
 	gaim_plugins_unregister_probe_notify_cb(update_plugin_list);
 
-	save_prefs();
 	prefs = NULL;
 	tree_v = NULL;
 	sound_entry = NULL;
@@ -454,7 +453,6 @@
 	filename = g_value_get_string(&val);
 	load_smiley_theme(filename, TRUE);
 	g_value_unset (&val);
-	save_prefs();
 }
 
 GtkTreePath *theme_refresh_theme_list()
--- a/src/log.c	Sat May 31 08:39:12 2003 +0000
+++ b/src/log.c	Sat May 31 08:42:55 2003 +0000
@@ -43,8 +43,6 @@
 	}
 
 	log_conversations = g_list_remove(log_conversations, a);
-
-	save_prefs();
 }
 
 struct log_conversation *find_log_info(const char *name)
--- a/src/session.c	Sat May 31 08:39:12 2003 +0000
+++ b/src/session.c	Sat May 31 08:42:55 2003 +0000
@@ -189,7 +189,7 @@
 
 	if (save_type == SmSaveGlobal || save_type == SmSaveBoth) {
 		/* may as well do something ... */
-		save_prefs();
+		/* or not -- save_prefs(); */
 	}
 
 	SmcSaveYourselfDone(conn, True);