[Pidgin] #8967: Conversation tabs not resized correctly when aligned left or right
Pidgin
trac at pidgin.im
Fri Mar 9 17:28:40 EST 2012
#8967: Conversation tabs not resized correctly when aligned left or right
--------------------------------------+-------------------------------------
Reporter: masc82 | Owner: rekkanoryo
Type: defect | Status: new
Milestone: | Component: unclassified
Version: 2.5.5 | Resolution:
Keywords: conversation tabs resize |
--------------------------------------+-------------------------------------
Comment(by renatosilva):
Old bug but I've been experiencing some ellipsizing issues and I just
noticed a suspecting line in gtkconv.c:
{{{
gtk_label_set_width_chars(GTK_LABEL(gtkconv->tab_label), 4)
}}}
I believe it's actually setting the width to be that of ''no character not
four''. Right bellow it sets the width for the same label but now with the
minimum from length of contained text and a fixed max width of 12. I've
added this mysterious 4 to this width and it seems to be working just
fine:
{{{
- MIN(g_utf8_strlen(gtk_label_get_text(GTK_LABEL(gtkconv->tab_label)),
-1), 12)
+ MIN(g_utf8_strlen(gtk_label_get_text(GTK_LABEL(gtkconv->tab_label)),
-1), 30) + 4
}}}
--
Ticket URL: <http://developer.pidgin.im/ticket/8967#comment:9>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list