im.pidgin.pidgin.2.2.2: fc4420a53c1210a5c95a4b5faa7780ec6e6d57ae
lschiere at pidgin.im
lschiere at pidgin.im
Sun Oct 21 01:17:57 EDT 2007
-----------------------------------------------------------------
Revision: fc4420a53c1210a5c95a4b5faa7780ec6e6d57ae
Ancestor: 25a014b320294c98969dd7c3ce0158593f5cf674
Author: lschiere at pidgin.im
Date: 2007-10-21T04:40:07
Branch: im.pidgin.pidgin.2.2.2
Modified files:
COPYRIGHT pidgin/gtkconv.c
ChangeLog:
applied changes from f9d3abd0678a04291edd671c4e5d87c7217984bb
through a7fd1a77d527c2399c6ab65560c834c989a83427
-------------- next part --------------
============================================================
--- COPYRIGHT 8098981cc6ea32f03e13589c61b7587abd8ad928
+++ COPYRIGHT dbb9f10f880cc0de7e000cba6a4fc9d22f6f52da
@@ -196,6 +196,7 @@ Cole Kowalski
Akuke Kok
Konstantin Korikov
Cole Kowalski
+Matt Kramer
Gary Kramlich
Jan Kratochvil
Andrej KrivulÄÃk
============================================================
--- pidgin/gtkconv.c cd198899e45dba97f7b52bb4b3f69981eaba2a54
+++ pidgin/gtkconv.c 5b6eb2b7d25e9ce3619623c807c0da3befa96456
@@ -6455,6 +6455,7 @@ pidgin_conv_update_fields(PurpleConversa
AtkObject *accessibility_obj;
/* I think this is a little longer than it needs to be but I'm lazy. */
char *style;
+ gboolean bold = FALSE;
if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM)
im = PURPLE_CONV_IM(conv);
@@ -6488,7 +6489,7 @@ pidgin_conv_update_fields(PurpleConversa
gtk_list_store_set(gtkconv->infopane_model, &(gtkconv->infopane_iter),
CONV_TEXT_COLUMN, markup, -1);
/* XXX seanegan Why do I have to do this? */
- gtk_widget_queue_draw(gtkconv->infopane);
+ gtk_widget_queue_draw(gtkconv->infopane);
if (title != markup)
g_free(markup);
@@ -6507,31 +6508,38 @@ pidgin_conv_update_fields(PurpleConversa
style = "color=\"#c4a000\"";
} else if (gtkconv->unseen_state == PIDGIN_UNSEEN_NICK) {
atk_object_set_description(accessibility_obj, _("Nick Said"));
- style = "color=\"#204a87\" weight=\"bold\"";
+ style = "color=\"#204a87\"";
} else if (gtkconv->unseen_state == PIDGIN_UNSEEN_TEXT) {
atk_object_set_description(accessibility_obj, _("Unread Messages"));
- style = "color=\"#cc0000\" weight=\"bold\"";
+ style = "color=\"#cc0000\"";
} else if (gtkconv->unseen_state == PIDGIN_UNSEEN_EVENT) {
atk_object_set_description(accessibility_obj, _("New Event"));
- style = "color=\"#888a85\" weight=\"bold\"";
+ style = "color=\"#888a85\"";
} else {
- style = "";
+ style = NULL;
}
+
+ if (gtkconv->unseen_state == PIDGIN_UNSEEN_TEXT ||
+ gtkconv->unseen_state == PIDGIN_UNSEEN_NICK ||
+ gtkconv->unseen_state == PIDGIN_UNSEEN_EVENT)
+ bold = TRUE;
- if (*style != '\0')
+ if (style || bold)
{
char *html_title,*label;
html_title = g_markup_escape_text(title, -1);
- label = g_strdup_printf("<span %s>%s</span>",
- style, html_title);
+ label = g_strdup_printf("<span %s %s>%s</span>",
+ style ? style : "",
+ bold ? "weight=\"bold\"" : "",
+ html_title);
g_free(html_title);
gtk_label_set_markup(GTK_LABEL(gtkconv->tab_label), label);
g_free(label);
}
else
gtk_label_set_text(GTK_LABEL(gtkconv->tab_label), title);
-
+
if (pidgin_conv_window_is_active_conversation(conv))
update_typing_icon(gtkconv);
More information about the Commits
mailing list