Mercurial > pidgin.yaz
diff src/gtkconv.c @ 8691:0eb5161ef333
[gaim-migrate @ 9444]
Patch by Stu Tomlinson to disable the font size and background color
buttons in MSN, and close the tags in msn/utils.c. Thanks :)
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 18 Apr 2004 03:27:33 +0000 |
parents | b3b3384bc1e6 |
children | 230fee6f1e3e |
line wrap: on
line diff
--- a/src/gtkconv.c Sun Apr 18 01:37:19 2004 +0000 +++ b/src/gtkconv.c Sun Apr 18 03:27:33 2004 +0000 @@ -248,7 +248,8 @@ gtk_imhtml_toggle_fontface(GTK_IMHTML(c->entry), c->fontface); } - if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_size")) + if (!(gc->flags & GAIM_CONNECTION_NO_FONTSIZE) && + gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_size")) { gtk_imhtml_font_set_size(GTK_IMHTML(c->entry), gaim_prefs_get_int("/gaim/gtk/conversations/font_size")); @@ -2368,6 +2369,10 @@ buttons &= ~GTK_IMHTML_IMAGE; if (gc->flags & GAIM_CONNECTION_NO_BGCOLOR) buttons &= ~GTK_IMHTML_BACKCOLOR; + if (gc->flags & GAIM_CONNECTION_NO_FONTSIZE) { + buttons &= ~GTK_IMHTML_GROW; + buttons &= ~GTK_IMHTML_SHRINK; + } } else { buttons = GTK_IMHTML_SMILEY; }