OSDN Git Service

MacGui: fix file suffix creation for .ogm (the break was misplaced in the case statem...
[handbrake-jp/handbrake-jp-git.git] / macosx / main.mm
index bd649f8..b07c7f1 100644 (file)
@@ -1,12 +1,18 @@
-/* $Id: main.mm,v 1.1.1.1 2003/11/03 12:03:51 titer Exp $
+/* $Id: main.mm,v 1.3 2005/11/25 15:04:35 titer Exp $
 
    This file is part of the HandBrake source code.
    Homepage: <http://handbrake.m0k.org/>.
    It may be used under the terms of the GNU General Public License. */
 
-#import <Cocoa/Cocoa.h>
+#include <Cocoa/Cocoa.h>
+
+void SigHandler( int signal )
+{
+    [NSApp terminate: NULL];
+} 
 
 int main( int argc, const char ** argv )
 {
+    signal( SIGINT, SigHandler );
     return NSApplicationMain( argc, argv );
 }