comparison src/gtkconv.c @ 10666:b39d5850883a

[gaim-migrate @ 12206] Igor Belyi thinks the correct way to maintain persistent formatting is to let default formatting override it. I'm not sure if I agree yet, but I'll try it out. Also, this increases the need for HTML pastes into the conversation to end all their tags at the end of the paste. I think I did this with the gtkimhtml.c change, but I'm not positive. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 07 Mar 2005 18:58:52 +0000
parents 4829abdc5c35
children 210e38f53b7b
comparison
equal deleted inserted replaced
10665:4829abdc5c35 10666:b39d5850883a
197 197
198 static void 198 static void
199 default_formatize(GaimConversation *conv) 199 default_formatize(GaimConversation *conv)
200 { 200 {
201 GaimGtkConversation *c = GAIM_GTK_CONVERSATION(conv); 201 GaimGtkConversation *c = GAIM_GTK_CONVERSATION(conv);
202 202
203 if (conv->features & GAIM_CONNECTION_HTML) 203 if (conv->features & GAIM_CONNECTION_HTML)
204 { 204 {
205 if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_formatting")) 205 if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_formatting"))
206 { 206 {
207 char *color; 207 char *color;
208 GdkColor fg_color, bg_color; 208 GdkColor fg_color, bg_color;
209 209
210 if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_bold")) 210 if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_bold") != GTK_IMHTML(c->entry)->edit.bold)
211 gtk_imhtml_toggle_bold(GTK_IMHTML(c->entry)); 211 gtk_imhtml_toggle_bold(GTK_IMHTML(c->entry));
212 212
213 if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_italic")) 213 if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_italic") != GTK_IMHTML(c->entry)->edit.italic)
214 gtk_imhtml_toggle_italic(GTK_IMHTML(c->entry)); 214 gtk_imhtml_toggle_italic(GTK_IMHTML(c->entry));
215 215
216 if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_underline")) 216 if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_underline") != GTK_IMHTML(c->entry)->edit.underline)
217 gtk_imhtml_toggle_underline(GTK_IMHTML(c->entry)); 217 gtk_imhtml_toggle_underline(GTK_IMHTML(c->entry));
218 218
219 gtk_imhtml_toggle_fontface(GTK_IMHTML(c->entry), 219 gtk_imhtml_toggle_fontface(GTK_IMHTML(c->entry),
220 gaim_prefs_get_string("/gaim/gtk/conversations/font_face")); 220 gaim_prefs_get_string("/gaim/gtk/conversations/font_face"));
221 221