Mercurial > pidgin
comparison src/gtkconv.c @ 7778:3db18c16f573
[gaim-migrate @ 8423]
This is half-complete, but I want to make sure I commit it before I really
totally screw it up and have no clue where it went sour. You can now copy
from and paste to a gtkimhtml and retain formatting... to some extent.
It's really easy to break. The parser isn't finished yet, so if some things
are really important to you, like, say, links, don't use this.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 06 Dec 2003 21:32:20 +0000 |
parents | 9d6ba1c44cb7 |
children | 824add06abde |
comparison
equal
deleted
inserted
replaced
7777:69b9e1d4f9e2 | 7778:3db18c16f573 |
---|---|
394 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_font") || c->has_font) { | 394 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_font") || c->has_font) { |
395 gtk_imhtml_toggle_fontface(GTK_IMHTML(c->entry), c->fontface); | 395 gtk_imhtml_toggle_fontface(GTK_IMHTML(c->entry), c->fontface); |
396 } | 396 } |
397 | 397 |
398 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_size")) { | 398 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_size")) { |
399 int i = 3; | 399 gtk_imhtml_font_set_size(GTK_IMHTML(c->entry), gaim_prefs_get_int("/gaim/gtk/conversations/font_size")); |
400 if (gaim_prefs_get_int("/gaim/gtk/conversations/font_size") < 3) { | |
401 while (gaim_prefs_get_int("/gaim/gtk/conversations/font_size") < i) { | |
402 gtk_imhtml_font_shrink(GTK_IMHTML(c->entry)); | |
403 i--; | |
404 } | |
405 } | |
406 | |
407 while (gaim_prefs_get_int("/gaim/gtk/conversations/font_size") > i) { | |
408 gtk_imhtml_font_grow(GTK_IMHTML(c->entry)); | |
409 i++; | |
410 } | |
411 | |
412 } | 400 } |
413 | 401 |
414 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_fgcolor")) { | 402 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_fgcolor")) { |
415 char *color = g_strdup_printf("#%02x%02x%02x", | 403 char *color = g_strdup_printf("#%02x%02x%02x", |
416 c->fg_color.red / 256, | 404 c->fg_color.red / 256, |