[gaim-migrate @ 15293]

Thu, 19 Jan 2006 06:52:16 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Thu, 19 Jan 2006 06:52:16 +0000
changeset 12940
756a2f1eba81
parent 12939
70ca0918209f
child 12941
08cefa32efd7

[gaim-migrate @ 15293]
Let's let Pango figure out how big the string is.

src/gtkblist.c file | annotate | diff | comparison | revisions
--- a/src/gtkblist.c	Thu Jan 19 06:30:09 2006 +0000
+++ b/src/gtkblist.c	Thu Jan 19 06:52:16 2006 +0000
@@ -2086,7 +2086,7 @@
 	td->avatar = gaim_gtk_blist_get_buddy_icon(node, FALSE, FALSE);
 	tooltip_text = gaim_get_tooltip_text(node, full);
 	td->layout = gtk_widget_create_pango_layout(gtkblist->tipwindow, NULL);
-	pango_layout_set_markup(td->layout, tooltip_text, strlen(tooltip_text));
+	pango_layout_set_markup(td->layout, tooltip_text, -1);
 	pango_layout_set_wrap(td->layout, PANGO_WRAP_WORD);
 	pango_layout_set_width(td->layout, 300000);
 

mercurial