Changeset 6d1c28b3c74828f7810301f3dadd41d89e326ccb

Show
Ignore:
Timestamp:
13/07/06 14:06:22 (2 years ago)
Author:
Felix Paul Kühne <fkuehne@videolan.org>
git-committer:
Felix Paul Kühne <fkuehne@videolan.org> 1152792382 +0000
git-parent:

[da6b3153d7f952476c403e0e73fdefd5c26a9b6f]

git-author:
Felix Paul Kühne <fkuehne@videolan.org> 1152792382 +0000
Message:

* implement the error panel correctly (for the records: not < 10.3 compatible)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/macosx/interaction.m

    r2adf9ed r6d1c28b  
    159159    if( p_dialog->i_id == DIALOG_ERRORS ) 
    160160    { 
    161         msg_Err( p_intf, "Error: %s", p_dialog->psz_description ); 
     161        msg_Dbg( p_intf, "error panel requested" ); 
     162        NSAlert * ourAlert = [NSAlert alertWithMessageText: 
     163            [NSString stringWithUTF8String:p_dialog->psz_title ? p_dialog->psz_title : _("Error")] 
     164            defaultButton: _NS("OK") alternateButton: nil otherButton: nil  
     165            informativeTextWithFormat:  
     166            [NSString stringWithUTF8String:p_dialog->psz_description]]; 
     167        [ourAlert setAlertStyle: NSWarningAlertStyle]; 
     168        [ourAlert runModal]; 
    162169    } 
    163170    else