comparison src/gtkconv.c @ 8944:f041cc8d86cf

[gaim-migrate @ 9716] Fully replace Ignore colors, Ignore font faces and Ignore font sizes with Ignore formatting on incoming messages. nosnilmot: I chose not to apply your change to set_away_option because people should not attempt to set a preference with a NULL value, and if they do we might as well just have Gaim crash so they know about it. My reasoning might be flawed. Eh. Also, Chip and Etan were both against consolidating these options, so someone might want to keep a patch of this commit handy so we can revert it, if necessary. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 16 May 2004 05:25:37 +0000
parents 71fddf3f340d
children 80944edf8d80
comparison
equal deleted inserted replaced
8943:48f1b020136b 8944:f041cc8d86cf
4573 if(gc) 4573 if(gc)
4574 sml_attrib = g_strdup_printf("sml=\"%s\"", gc->prpl->info->name); 4574 sml_attrib = g_strdup_printf("sml=\"%s\"", gc->prpl->info->name);
4575 4575
4576 gtk_font_options ^= GTK_IMHTML_NO_COMMENTS; 4576 gtk_font_options ^= GTK_IMHTML_NO_COMMENTS;
4577 4577
4578 if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_colors")) 4578 if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_formatting")) {
4579 gtk_font_options ^= GTK_IMHTML_NO_COLOURS; 4579 gtk_font_options ^= GTK_IMHTML_NO_COLOURS;
4580
4581 if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_fonts"))
4582 gtk_font_options ^= GTK_IMHTML_NO_FONTS; 4580 gtk_font_options ^= GTK_IMHTML_NO_FONTS;
4583
4584 if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_font_sizes"))
4585 gtk_font_options ^= GTK_IMHTML_NO_SIZES; 4581 gtk_font_options ^= GTK_IMHTML_NO_SIZES;
4582 }
4586 4583
4587 /* this is gonna crash one day, I can feel it. */ 4584 /* this is gonna crash one day, I can feel it. */
4588 if (GAIM_PLUGIN_PROTOCOL_INFO(gaim_find_prpl(gaim_account_get_protocol_id(conv->account)))->options & 4585 if (GAIM_PLUGIN_PROTOCOL_INFO(gaim_find_prpl(gaim_account_get_protocol_id(conv->account)))->options &
4589 OPT_PROTO_USE_POINTSIZE) { 4586 OPT_PROTO_USE_POINTSIZE) {
4590 gtk_font_options ^= GTK_IMHTML_USE_POINTSIZE; 4587 gtk_font_options ^= GTK_IMHTML_USE_POINTSIZE;
5850 gaim_prefs_add_bool("/gaim/gtk/conversations/send_bold", FALSE); 5847 gaim_prefs_add_bool("/gaim/gtk/conversations/send_bold", FALSE);
5851 gaim_prefs_add_bool("/gaim/gtk/conversations/send_italic", FALSE); 5848 gaim_prefs_add_bool("/gaim/gtk/conversations/send_italic", FALSE);
5852 gaim_prefs_add_bool("/gaim/gtk/conversations/send_underline", FALSE); 5849 gaim_prefs_add_bool("/gaim/gtk/conversations/send_underline", FALSE);
5853 gaim_prefs_add_bool("/gaim/gtk/conversations/show_timestamps", TRUE); 5850 gaim_prefs_add_bool("/gaim/gtk/conversations/show_timestamps", TRUE);
5854 gaim_prefs_add_bool("/gaim/gtk/conversations/spellcheck", TRUE); 5851 gaim_prefs_add_bool("/gaim/gtk/conversations/spellcheck", TRUE);
5855 gaim_prefs_add_bool("/gaim/gtk/conversations/ignore_colors", FALSE); 5852 gaim_prefs_add_bool("/gaim/gtk/conversations/ignore_formatting", FALSE);
5856 gaim_prefs_add_bool("/gaim/gtk/conversations/ignore_fonts", FALSE);
5857 gaim_prefs_add_bool("/gaim/gtk/conversations/ignore_font_sizes", FALSE);
5858 gaim_prefs_add_bool("/gaim/gtk/conversations/use_custom_bgcolor", FALSE); 5853 gaim_prefs_add_bool("/gaim/gtk/conversations/use_custom_bgcolor", FALSE);
5859 gaim_prefs_add_bool("/gaim/gtk/conversations/use_custom_fgcolor", FALSE); 5854 gaim_prefs_add_bool("/gaim/gtk/conversations/use_custom_fgcolor", FALSE);
5860 gaim_prefs_add_bool("/gaim/gtk/conversations/use_custom_font", FALSE); 5855 gaim_prefs_add_bool("/gaim/gtk/conversations/use_custom_font", FALSE);
5861 gaim_prefs_add_bool("/gaim/gtk/conversations/use_custom_size", FALSE); 5856 gaim_prefs_add_bool("/gaim/gtk/conversations/use_custom_size", FALSE);
5862 gaim_prefs_add_bool("/gaim/gtk/conversations/html_shortcuts", FALSE); 5857 gaim_prefs_add_bool("/gaim/gtk/conversations/html_shortcuts", FALSE);