Changeset 471

Show
Ignore:
Timestamp:
03/06/2008 14:11:14 (6 months ago)
Author:
why
Message:
  • shoes/dialogs.c: sorry, do utf-8 conversion on dialog title.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/shoes/dialogs.c

    r470 r471  
    184184    char byteFlag = 1; 
    185185    EventTypeSpec spec[1]; 
    186     CFStringRef cfmsg = CFStringCreateWithCString(NULL, RSTRING_PTR(quiz), kCFStringEncodingUTF8); 
    187     SetWindowTitleWithCFString(app->os.window, CFSTR(dialog_title)); 
     186    CFStringRef cfmsg = CFStringCreateWithCString(NULL, dialog_title, kCFStringEncodingUTF8); 
     187    SetWindowTitleWithCFString(dialog.ref, cfmsg); 
     188    CFRelease(cfmsg); 
    188189 
    189190    // 
    190191    // TODO: make room for larger text in the label 
    191192    // 
     193    cfmsg = CFStringCreateWithCString(NULL, RSTRING_PTR(quiz), kCFStringEncodingUTF8); 
    192194    SetRect(&r, 24, 20, 400, 42); 
    193195    CreateStaticTextControl(dialog.ref, &r, cfmsg, NULL, &lbl);