1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

(trunk gtk) #4306 "Bogus <b> and </b> in popup hints" -- fixed.

This commit is contained in:
Jordan Lee 2011-06-02 20:04:23 +00:00
parent 486679d11c
commit d3e427cfd8

View file

@ -1473,7 +1473,9 @@ onPeerViewQueryTooltip( GtkWidget * widget,
-1 ); -1 );
g_string_truncate( gstr, 0 ); g_string_truncate( gstr, 0 );
g_string_append_printf( gstr, "<b>%s</b>\n%s\n \n", name, addr ); markup = g_markup_escape_text( name, -1 );
g_string_append_printf( gstr, "<b>%s</b>\n%s\n \n", markup, addr );
g_free( markup );
for( pch = flagstr; pch && *pch; ++pch ) for( pch = flagstr; pch && *pch; ++pch )
{ {
@ -1499,9 +1501,7 @@ onPeerViewQueryTooltip( GtkWidget * widget,
if( gstr->len ) /* remove the last linefeed */ if( gstr->len ) /* remove the last linefeed */
g_string_set_size( gstr, gstr->len - 1 ); g_string_set_size( gstr, gstr->len - 1 );
markup = g_markup_escape_text( gstr->str, gstr->len ); gtk_tooltip_set_markup( tooltip, gstr->str );
gtk_tooltip_set_markup( tooltip, markup );
g_free( markup );
g_free( flagstr ); g_free( flagstr );
g_free( addr ); g_free( addr );