Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
8690:b3b3384bc1e6 | 8691:0eb5161ef333 |
---|---|
246 c->has_font) | 246 c->has_font) |
247 { | 247 { |
248 gtk_imhtml_toggle_fontface(GTK_IMHTML(c->entry), c->fontface); | 248 gtk_imhtml_toggle_fontface(GTK_IMHTML(c->entry), c->fontface); |
249 } | 249 } |
250 | 250 |
251 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_size")) | 251 if (!(gc->flags & GAIM_CONNECTION_NO_FONTSIZE) && |
252 gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_size")) | |
252 { | 253 { |
253 gtk_imhtml_font_set_size(GTK_IMHTML(c->entry), | 254 gtk_imhtml_font_set_size(GTK_IMHTML(c->entry), |
254 gaim_prefs_get_int("/gaim/gtk/conversations/font_size")); | 255 gaim_prefs_get_int("/gaim/gtk/conversations/font_size")); |
255 } | 256 } |
256 | 257 |
2366 buttons = GTK_IMHTML_ALL; /* Everything on */ | 2367 buttons = GTK_IMHTML_ALL; /* Everything on */ |
2367 if (!(prpl_info->options & OPT_PROTO_IM_IMAGE)) | 2368 if (!(prpl_info->options & OPT_PROTO_IM_IMAGE)) |
2368 buttons &= ~GTK_IMHTML_IMAGE; | 2369 buttons &= ~GTK_IMHTML_IMAGE; |
2369 if (gc->flags & GAIM_CONNECTION_NO_BGCOLOR) | 2370 if (gc->flags & GAIM_CONNECTION_NO_BGCOLOR) |
2370 buttons &= ~GTK_IMHTML_BACKCOLOR; | 2371 buttons &= ~GTK_IMHTML_BACKCOLOR; |
2372 if (gc->flags & GAIM_CONNECTION_NO_FONTSIZE) { | |
2373 buttons &= ~GTK_IMHTML_GROW; | |
2374 buttons &= ~GTK_IMHTML_SHRINK; | |
2375 } | |
2371 } else { | 2376 } else { |
2372 buttons = GTK_IMHTML_SMILEY; | 2377 buttons = GTK_IMHTML_SMILEY; |
2373 } | 2378 } |
2374 gtk_imhtml_set_format_functions(GTK_IMHTML(gtkconv->entry), buttons); | 2379 gtk_imhtml_set_format_functions(GTK_IMHTML(gtkconv->entry), buttons); |
2375 gtk_imhtmltoolbar_associate_smileys (GTK_IMHTMLTOOLBAR(gtkconv->toolbar), gaim_account_get_protocol_id(gaim_conversation_get_account(conv))); | 2380 gtk_imhtmltoolbar_associate_smileys (GTK_IMHTMLTOOLBAR(gtkconv->toolbar), gaim_account_get_protocol_id(gaim_conversation_get_account(conv))); |