changeset 10488:47366cf2792b

[gaim-migrate @ 11778] Consolidated Ignore Formatting preferences. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 08 Jan 2005 20:42:47 +0000
parents 659edfcac14e
children 8dffdd8861b5
files src/gtkconv.c src/gtkprefs.c
diffstat 2 files changed, 6 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Sat Jan 08 20:30:41 2005 +0000
+++ b/src/gtkconv.c	Sat Jan 08 20:42:47 2005 +0000
@@ -4727,12 +4727,8 @@
 
 	gtk_font_options ^= GTK_IMHTML_NO_COMMENTS;
 
-	if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_colors"))
-		gtk_font_options ^= GTK_IMHTML_NO_COLOURS;
-	if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_fonts"))
-		gtk_font_options ^= GTK_IMHTML_NO_FONTS;
-	if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_font_sizes"))
-		gtk_font_options ^= GTK_IMHTML_NO_SIZES;
+	if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_formatting"))
+		gtk_font_options ^= GTK_IMHTML_NO_COLOURS | GTK_IMHTML_NO_FONTS | GTK_IMHTML_NO_SIZES;
 
 	/* this is gonna crash one day, I can feel it. */
 	if (GAIM_PLUGIN_PROTOCOL_INFO(gaim_find_prpl(gaim_account_get_protocol_id(conv->account)))->options &
@@ -5834,7 +5830,7 @@
 	gaim_prefs_add_bool("/gaim/gtk/conversations/send_italic", FALSE);
 	gaim_prefs_add_bool("/gaim/gtk/conversations/send_underline", FALSE);
 	gaim_prefs_add_bool("/gaim/gtk/conversations/spellcheck", TRUE);
-#if 1
+#if 0
 	gaim_prefs_add_bool("/gaim/gtk/conversations/ignore_colors", FALSE);
 	gaim_prefs_add_bool("/gaim/gtk/conversations/ignore_fonts", FALSE);
 	gaim_prefs_add_bool("/gaim/gtk/conversations/ignore_font_sizes", FALSE);
--- a/src/gtkprefs.c	Sat Jan 08 20:30:41 2005 +0000
+++ b/src/gtkprefs.c	Sat Jan 08 20:42:47 2005 +0000
@@ -760,12 +760,8 @@
 			"/gaim/gtk/conversations/spellcheck", vbox);
 #endif
 	vbox = gaim_gtk_make_frame (ret, _("Ignore"));
-	gaim_gtk_prefs_checkbox(_("Ignore c_olors"),
-							"/gaim/gtk/conversations/ignore_colors", vbox);
-	gaim_gtk_prefs_checkbox(_("Ignore font _faces"),
-							"/gaim/gtk/conversations/ignore_fonts", vbox);
-	gaim_gtk_prefs_checkbox(_("Ignore font si_zes"),
-							"/gaim/gtk/conversations/ignore_font_sizes", vbox);
+	gaim_gtk_prefs_checkbox(_("Ignore _formatting"),
+				"/gaim/gtk/conversations/ignore_formatting", vbox);
 
 	vbox = gaim_gtk_make_frame (ret, _("Default Formatting"));
 
@@ -2333,6 +2329,7 @@
 					  "/gaim/gtk/conversations/send_formatting");
 
 	gaim_prefs_rename("/gaim/gtk/debug/timestamps", "/core/debug/timestamps");
+	gaim_prefs_rename("/gaim/gtk/conversations/ignore_colors", "/gaim/gtk/conversations/ignore_formatting");
 
 	/* Remove some no-longer-used prefs */
 	gaim_prefs_remove("/gaim/gtk/blist/auto_expand_contacts");