diff src/log.c @ 5548:80e4ba770f97

[gaim-migrate @ 5949] incremental progress committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 29 May 2003 19:50:19 +0000
parents c72213437829
children 7b36d02031a2
line wrap: on
line diff
--- a/src/log.c	Thu May 29 19:48:13 2003 +0000
+++ b/src/log.c	Thu May 29 19:50:19 2003 +0000
@@ -14,6 +14,7 @@
 #include "gaim.h"
 #include "core.h"
 #include "multi.h"
+#include "prefs.h"
 #include "prpl.h"
 #include "notify.h"
 #include <string.h>
@@ -44,9 +45,6 @@
 	log_conversations = g_list_remove(log_conversations, a);
 
 	save_prefs();
-
-	if (cnv && !(im_options & OPT_IM_ONE_WINDOW))
-		gaim_conversation_autoset_title(cnv);
 }
 
 struct log_conversation *find_log_info(const char *name)
@@ -88,10 +86,10 @@
 		if (gtkconv->toolbar.log) {
 			if (gaim_conversation_get_type(c) == GAIM_CONV_CHAT)
 				gtk_widget_set_sensitive(GTK_WIDGET(gtkconv->toolbar.log),
-						   ((logging_options & OPT_LOG_CHATS)) ? FALSE : TRUE);
+						!gaim_prefs_get_bool("/gaim/gtk/logging/log_chats"));
 			else
 				gtk_widget_set_sensitive(GTK_WIDGET(gtkconv->toolbar.log),
-							 ((logging_options & OPT_LOG_CONVOS)) ? FALSE : TRUE);
+						!gaim_prefs_get_bool("/gaim/gtk/logging/log_ims"));
 		}
 	}
 }
@@ -244,8 +242,8 @@
 	int flag = 0;
 
 	if (((is_chat == 2) && !(logging_options & OPT_LOG_INDIVIDUAL))
-		|| ((is_chat == 1) && !(logging_options & OPT_LOG_CHATS))
-		|| ((is_chat == 0) && !(logging_options & OPT_LOG_CONVOS))) {
+		|| ((is_chat == 1) && !gaim_prefs_get_bool("/gaim/gtk/logging/log_chats"))
+		|| ((is_chat == 0) && !gaim_prefs_get_bool("/gaim/gtk/logging/log_ims"))) {
 
 		l = find_log_info(name);
 		if (!l)
@@ -420,7 +418,7 @@
 		}
 	}
 
-	if (logging_options & OPT_LOG_STRIP_HTML) {
+	if (gaim_prefs_get_bool("/gaim/gtk/logging/strip_html")) {
 		fprintf(fd, "---- %s ----\n", text);
 	} else {
 		if (logging_options & OPT_LOG_INDIVIDUAL)