Changeset 12487


Ignore:
Timestamp:
Jun 2, 2011, 8:04:23 PM (10 years ago)
Author:
jordan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r12465 r12487  
    14741474
    14751475        g_string_truncate( gstr, 0 );
    1476         g_string_append_printf( gstr, "<b>%s</b>\n%s\n \n", name, addr );
     1476        markup = g_markup_escape_text( name, -1 );
     1477        g_string_append_printf( gstr, "<b>%s</b>\n%s\n \n", markup, addr );
     1478        g_free( markup );
    14771479
    14781480        for( pch = flagstr; pch && *pch; ++pch )
     
    15001502            g_string_set_size( gstr, gstr->len - 1 );
    15011503
    1502         markup = g_markup_escape_text( gstr->str, gstr->len );
    1503         gtk_tooltip_set_markup( tooltip, markup );
    1504         g_free( markup );
     1504        gtk_tooltip_set_markup( tooltip, gstr->str );
    15051505
    15061506        g_free( flagstr );
Note: See TracChangeset for help on using the changeset viewer.