Mercurial > pidgin
comparison src/gtkconv.c @ 8722:230fee6f1e3e
[gaim-migrate @ 9477]
So, I decided we should cut down on gaim_notify_* where possible and find
less obtrusive ways to report errors, so I made GAIM_MESSAGE_ERROR as a flag
that can be sent to gaim_conversation_write to report conversation-specific
errors ("This message was not sent because %s is offline" and the sorts).
I'll leave hacking the prpls to use it (without changing strings before
Thursday) as an excercise.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 20 Apr 2004 05:00:27 +0000 |
parents | 0eb5161ef333 |
children | 8b935eddeb10 |
comparison
equal
deleted
inserted
replaced
8721:1fac5551b03e | 8722:230fee6f1e3e |
---|---|
4582 | 4582 |
4583 /* Add the message to a conversations scrollback buffer */ | 4583 /* Add the message to a conversations scrollback buffer */ |
4584 conv->history = g_string_append(conv->history, buf); | 4584 conv->history = g_string_append(conv->history, buf); |
4585 conv->history = g_string_append(conv->history, "<BR>\n"); | 4585 conv->history = g_string_append(conv->history, "<BR>\n"); |
4586 | 4586 |
4587 } else if (flags & GAIM_MESSAGE_ERROR) { | |
4588 if (gaim_prefs_get_bool("/gaim/gtk/conversations/show_timestamps")) | |
4589 g_snprintf(buf, BUF_LONG, "<FONT SIZE=\"2\">(%s)</FONT> <B>%s</B>", | |
4590 mdate, message); | |
4591 else | |
4592 g_snprintf(buf, BUF_LONG, "<FONT COLOR=\"#ff0000\"><B>%s</B></FONT>", message); | |
4593 | |
4594 g_snprintf(buf2, sizeof(buf2), | |
4595 "<FONT %s><FONT SIZE=\"2\"><!--(%s) --></FONT><B>%s</B></FONT>", | |
4596 sml_attrib, mdate, message); | |
4597 | |
4598 gtk_imhtml_append_text_with_images(GTK_IMHTML(gtkconv->imhtml), | |
4599 buf2, 0, images); | |
4600 | |
4601 /* Add the message to a conversations scrollback buffer */ | |
4602 conv->history = g_string_append(conv->history, buf); | |
4603 conv->history = g_string_append(conv->history, "<BR>\n"); | |
4587 } else if (flags & GAIM_MESSAGE_NO_LOG) { | 4604 } else if (flags & GAIM_MESSAGE_NO_LOG) { |
4588 g_snprintf(buf, BUF_LONG, | 4605 g_snprintf(buf, BUF_LONG, |
4589 "<B><FONT %s COLOR=\"#777777\">%s</FONT></B>", | 4606 "<B><FONT %s COLOR=\"#777777\">%s</FONT></B>", |
4590 sml_attrib, message); | 4607 sml_attrib, message); |
4591 | 4608 |