From d3e427cfd8dc272d7bfdc619e4cbeed3379e9f52 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Thu, 2 Jun 2011 20:04:23 +0000 Subject: [PATCH] (trunk gtk) #4306 "Bogus and in popup hints" -- fixed. --- gtk/details.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/details.c b/gtk/details.c index 6bcda8389..360c7887d 100644 --- a/gtk/details.c +++ b/gtk/details.c @@ -1473,7 +1473,9 @@ onPeerViewQueryTooltip( GtkWidget * widget, -1 ); g_string_truncate( gstr, 0 ); - g_string_append_printf( gstr, "%s\n%s\n \n", name, addr ); + markup = g_markup_escape_text( name, -1 ); + g_string_append_printf( gstr, "%s\n%s\n \n", markup, addr ); + g_free( markup ); for( pch = flagstr; pch && *pch; ++pch ) { @@ -1499,9 +1501,7 @@ onPeerViewQueryTooltip( GtkWidget * widget, if( gstr->len ) /* remove the last linefeed */ g_string_set_size( gstr, gstr->len - 1 ); - markup = g_markup_escape_text( gstr->str, gstr->len ); - gtk_tooltip_set_markup( tooltip, markup ); - g_free( markup ); + gtk_tooltip_set_markup( tooltip, gstr->str ); g_free( flagstr ); g_free( addr );