]> git.sesse.net Git - vlc/commitdiff
* implement the error panel correctly (for the records: not < 10.3 compatible)
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 13 Jul 2006 12:06:22 +0000 (12:06 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 13 Jul 2006 12:06:22 +0000 (12:06 +0000)
modules/gui/macosx/interaction.m

index 962d137a5ca1cb1e29360449a7932435d2d3dddd..62fd42376fb28605d9a07f63dc72fa7d16574705 100644 (file)
 
     if( p_dialog->i_id == DIALOG_ERRORS )
     {
-        msg_Err( p_intf, "Error: %s", p_dialog->psz_description );
+        msg_Dbg( p_intf, "error panel requested" );
+        NSAlert * ourAlert = [NSAlert alertWithMessageText:
+            [NSString stringWithUTF8String:p_dialog->psz_title ? p_dialog->psz_title : _("Error")]
+            defaultButton: _NS("OK") alternateButton: nil otherButton: nil 
+            informativeTextWithFormat: 
+            [NSString stringWithUTF8String:p_dialog->psz_description]];
+        [ourAlert setAlertStyle: NSWarningAlertStyle];
+        [ourAlert runModal];
     }
     else
     {