]> git.pld-linux.org Git - packages/ImageViewer.git/commitdiff
- be compatible with pass-arguments method
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 31 Oct 2004 20:53:26 +0000 (20:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ImageViewer-pass-arguments.patch -> 1.1

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

diff --git a/ImageViewer-pass-arguments.patch b/ImageViewer-pass-arguments.patch
new file mode 100644 (file)
index 0000000..1a13fd2
--- /dev/null
@@ -0,0 +1,20 @@
+--- ImageViewer-0.6.3/main.m.orig      2003-06-29 19:28:34.000000000 +0200
++++ ImageViewer-0.6.3/main.m   2004-10-31 21:53:54.805121848 +0100
+@@ -17,11 +17,17 @@
+  * Initialise and go!\r
+  */\r
\r
++extern char **environ;\r
++\r
+ int main(int argc, const char *argv[]) \r
+ {\r
+   NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];\r
+   AppController     *controller;\r
+   \r
++#ifdef GS_PASS_ARGUMENTS\r
++  [NSProcessInfo initializeWithArguments: argv count: argc environment: environ];\r
++#endif\r
++        \r
+   [NSApplication sharedApplication];\r
\r
+   createMenu();\r
This page took 0.073257 seconds and 4 git commands to generate.