comparison src/gtkconv.c @ 8380:4a5b36510665

[gaim-migrate @ 9108] Just a minor WYSIWYG fix; now the grow and shrink buttons work properly. Also, the CSS standard says that each font size should be 1.2 times the size of the next smallest, and W3C tends to be smart about these things, so I did that. Also, timestamps are once again size=2, which I think looks better. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 01 Mar 2004 20:52:57 +0000
parents e7463be62fb1
children 15614a7cdc13
comparison
equal deleted inserted replaced
8379:1a9388ae699e 8380:4a5b36510665
4411 gtk_font_options ^= GTK_IMHTML_USE_POINTSIZE; 4411 gtk_font_options ^= GTK_IMHTML_USE_POINTSIZE;
4412 } 4412 }
4413 4413
4414 if (flags & GAIM_MESSAGE_SYSTEM) { 4414 if (flags & GAIM_MESSAGE_SYSTEM) {
4415 if (gaim_prefs_get_bool("/gaim/gtk/conversations/show_timestamps")) 4415 if (gaim_prefs_get_bool("/gaim/gtk/conversations/show_timestamps"))
4416 g_snprintf(buf, BUF_LONG, "(%s) <B>%s</B>", 4416 g_snprintf(buf, BUF_LONG, "<FONT SIZE=\"2\">(%s)</FONT> <B>%s</B>",
4417 mdate, message); 4417 mdate, message);
4418 else 4418 else
4419 g_snprintf(buf, BUF_LONG, "<B>%s</B>", message); 4419 g_snprintf(buf, BUF_LONG, "<B>%s</B>", message);
4420 4420
4421 g_snprintf(buf2, sizeof(buf2), 4421 g_snprintf(buf2, sizeof(buf2),
4422 "<FONT %s><!--(%s) --><B>%s</B></FONT><BR>", 4422 "<FONT %s><FONT SIZE=\2\"><!--(%s) --></FONT><B>%s</B></FONT><BR>",
4423 sml_attrib, mdate, message); 4423 sml_attrib, mdate, message);
4424 4424
4425 gtk_imhtml_append_text_with_images(GTK_IMHTML(gtkconv->imhtml), buf2, 0, images); 4425 gtk_imhtml_append_text_with_images(GTK_IMHTML(gtkconv->imhtml), buf2, 0, images);
4426 4426
4427 /* Add the message to a conversations scrollback buffer */ 4427 /* Add the message to a conversations scrollback buffer */
4493 } 4493 }
4494 } 4494 }
4495 4495
4496 if (gaim_prefs_get_bool("/gaim/gtk/conversations/show_timestamps")) 4496 if (gaim_prefs_get_bool("/gaim/gtk/conversations/show_timestamps"))
4497 g_snprintf(buf, BUF_LONG, 4497 g_snprintf(buf, BUF_LONG,
4498 "<FONT COLOR=\"%s\" %s>(%s) " 4498 "<FONT COLOR=\"%s\" %s><FONT SIZE=\"2\">(%s)</FONT> "
4499 "<B>%s</B></FONT> ", color, 4499 "<B>%s</B></FONT> ", color,
4500 sml_attrib ? sml_attrib : "", mdate, str); 4500 sml_attrib ? sml_attrib : "", mdate, str);
4501 else 4501 else
4502 g_snprintf(buf, BUF_LONG, 4502 g_snprintf(buf, BUF_LONG,
4503 "<FONT COLOR=\"%s\" %s><B>%s</B></FONT> ", color, 4503 "<FONT COLOR=\"%s\" %s><B>%s</B></FONT> ", color,
4504 sml_attrib ? sml_attrib : "", str); 4504 sml_attrib ? sml_attrib : "", str);
4505 4505
4506 g_snprintf(buf2, BUF_LONG, 4506 g_snprintf(buf2, BUF_LONG,
4507 "<FONT COLOR=\"%s\" %s><!--(%s) -->" 4507 "<FONT COLOR=\"%s\" %s><FONT SIZE=\"2\"><!--(%s) --></FONT>"
4508 "<B>%s</B></FONT> ", 4508 "<B>%s</B></FONT> ",
4509 color, sml_attrib ? sml_attrib : "", mdate, str); 4509 color, sml_attrib ? sml_attrib : "", mdate, str);
4510 4510
4511 g_free(str); 4511 g_free(str);
4512 4512