]> git.pld-linux.org Git - packages/CodeEditor.git/commitdiff
- fix start with pass-arguments
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 22 Oct 2005 13:49:00 +0000 (13:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    CodeEditor-pass-arguments.patch -> 1.1

CodeEditor-pass-arguments.patch [new file with mode: 0644]

diff --git a/CodeEditor-pass-arguments.patch b/CodeEditor-pass-arguments.patch
new file mode 100644 (file)
index 0000000..10e01da
--- /dev/null
@@ -0,0 +1,19 @@
+--- CodeEditor/CodeEditor/main.m.orig  2003-10-09 17:06:06.000000000 +0200
++++ CodeEditor/CodeEditor/main.m       2005-10-22 15:37:45.238113904 +0200
+@@ -21,10 +21,15 @@
+ */
+ #include <AppKit/AppKit.h>
++#include <Foundation/NSProcessInfo.h>
+ #include "DocumentController.h"
+-int main(int argc, const char *argv[]) 
++int main(int argc, const char *argv[], char *env[]) 
+ {
++#ifdef GS_PASS_ARGUMENTS
++  [NSProcessInfo initializeWithArguments: (char**)argv count: argc environment: env];
++#endif
++
+   NSAutoreleasePool *pool = [NSAutoreleasePool new];
+   DocumentController *controller = [DocumentController sharedDocumentController];
+   [NSApplication sharedApplication];
This page took 0.042328 seconds and 4 git commands to generate.