comparison pidgin/gtkconv.c @ 20967:5cf8eef0692b

weight="bold" was getting set twice on tab titles when receiving an IM, causing me to get one of these puppies each time: Gtk: Failed to set text from markup due to error parsing markup: Attribute 'weight' occurs twice on <span> tag on line 1 char 59, may only occur once
author Mark Doliner <mark@kingant.net>
date Tue, 16 Oct 2007 07:10:33 +0000
parents 111f4b8084b0
children 89c7be36fd61 73ef026191e7
comparison
equal deleted inserted replaced
20966:dbbe341b5283 20967:5cf8eef0692b
6579 atk_object_set_description(accessibility_obj, _("Nick Said")); 6579 atk_object_set_description(accessibility_obj, _("Nick Said"));
6580 style = "color=\"#cc0000\""; 6580 style = "color=\"#cc0000\"";
6581 } else if (gtkconv->unseen_state == PIDGIN_UNSEEN_TEXT) { 6581 } else if (gtkconv->unseen_state == PIDGIN_UNSEEN_TEXT) {
6582 atk_object_set_description(accessibility_obj, _("Unread Messages")); 6582 atk_object_set_description(accessibility_obj, _("Unread Messages"));
6583 if (gtkconv->active_conv->type == PURPLE_CONV_TYPE_CHAT) 6583 if (gtkconv->active_conv->type == PURPLE_CONV_TYPE_CHAT)
6584 style = "color=\"#204a87\" weight=\"bold\""; 6584 style = "color=\"#204a87\"";
6585 else 6585 else
6586 style = "color=\"#cc0000\" weight=\"bold\""; 6586 style = "color=\"#cc0000\"";
6587 } else if (gtkconv->unseen_state == PIDGIN_UNSEEN_EVENT) { 6587 } else if (gtkconv->unseen_state == PIDGIN_UNSEEN_EVENT) {
6588 atk_object_set_description(accessibility_obj, _("New Event")); 6588 atk_object_set_description(accessibility_obj, _("New Event"));
6589 style = "color=\"#888a85\""; 6589 style = "color=\"#888a85\"";
6590 } else { 6590 } else {
6591 style = NULL; 6591 style = NULL;
6593 6593
6594 if (gtkconv->unseen_state == PIDGIN_UNSEEN_TEXT || 6594 if (gtkconv->unseen_state == PIDGIN_UNSEEN_TEXT ||
6595 gtkconv->unseen_state == PIDGIN_UNSEEN_NICK || 6595 gtkconv->unseen_state == PIDGIN_UNSEEN_NICK ||
6596 gtkconv->unseen_state == PIDGIN_UNSEEN_EVENT) 6596 gtkconv->unseen_state == PIDGIN_UNSEEN_EVENT)
6597 bold = TRUE; 6597 bold = TRUE;
6598 6598
6599 if (style || bold) 6599 if (style || bold)
6600 { 6600 {
6601 char *html_title,*label; 6601 char *html_title,*label;
6602 6602
6603 html_title = g_markup_escape_text(title, -1); 6603 html_title = g_markup_escape_text(title, -1);