Changeset 10404 for trunk/gtk/util.c


Ignore:
Timestamp:
Mar 20, 2010, 2:53:08 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) tinker with compact mode a little bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/util.c

    r10390 r10404  
    8989***/
    9090
     91const char*
     92gtr_get_unicode_string( int i )
     93{
     94    switch( i ) {
     95        case GTR_UNICODE_UP:   return "\xE2\x86\x91";
     96        case GTR_UNICODE_DOWN: return "\xE2\x86\x93";
     97        case GTR_UNICODE_INF:  return "\xE2\x88\x9E";
     98        default:               return "err";
     99    }
     100}
    91101
    92102char*
    93103tr_strlratio( char * buf, double ratio, size_t buflen )
    94104{
    95     return tr_strratio( buf, buflen, ratio, "\xE2\x88\x9E" );
     105    return tr_strratio( buf, buflen, ratio, gtr_get_unicode_string( GTR_UNICODE_INF ) );
    96106}
    97107
Note: See TracChangeset for help on using the changeset viewer.