]> git.pld-linux.org Git - packages/GWorkspace.git/blob - GWorkspace-initWithArguments.patch
- updated
[packages/GWorkspace.git] / GWorkspace-initWithArguments.patch
1 diff -ur orig-GWorkspace-0.6.5/ClipBook/main.m GWorkspace-0.6.5/ClipBook/main.m
2 --- orig-GWorkspace-0.6.5/ClipBook/main.m       2003-10-28 05:46:19.000000000 -0700
3 +++ GWorkspace-0.6.5/ClipBook/main.m    2004-11-09 02:50:21.897824882 -0700
4 @@ -33,8 +33,15 @@
5  int main(int argc, char **argv, char **env)
6  {
7         CREATE_AUTORELEASE_POOL (pool);
8 -  ClipBook *clipbook = [ClipBook clipbook];
9 -       NSApplication *app = [NSApplication sharedApplication];
10 +  ClipBook *clipbook;
11 +       NSApplication *app;
12 +
13 +#ifdef GS_PASS_ARGUMENTS
14 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
15 +#endif
16
17 +       clipbook        = [ClipBook clipbook];
18 +       app     = [NSApplication sharedApplication];
19    
20         createMenu();
21         
22 diff -ur orig-GWorkspace-0.6.5/Desktop/main.m GWorkspace-0.6.5/Desktop/main.m
23 --- orig-GWorkspace-0.6.5/Desktop/main.m        2004-05-26 06:07:30.000000000 -0600
24 +++ GWorkspace-0.6.5/Desktop/main.m     2004-11-09 02:50:21.897824882 -0700
25 @@ -32,8 +32,15 @@
26  int main(int argc, char **argv, char **env)
27  {
28         CREATE_AUTORELEASE_POOL (pool);
29 -  Desktop *desktop = [Desktop desktop];
30 -       NSApplication *app = [NSApplication sharedApplication];
31 +  Desktop *desktop;
32 +       NSApplication *app;
33 +
34 +#ifdef GS_PASS_ARGUMENTS
35 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
36 +#endif
37 +
38 +       desktop = [Desktop desktop];
39 +       app = [NSApplication sharedApplication];
40  
41         createMenu();
42  
43 diff -ur orig-GWorkspace-0.6.5/Finder/main.m GWorkspace-0.6.5/Finder/main.m
44 --- orig-GWorkspace-0.6.5/Finder/main.m 2004-04-13 17:23:41.000000000 -0600
45 +++ GWorkspace-0.6.5/Finder/main.m      2004-11-09 02:50:21.898824742 -0700
46 @@ -35,8 +35,15 @@
47  int main(int argc, char **argv, char **env)
48  {
49         CREATE_AUTORELEASE_POOL (pool);
50 -  Finder *finder = [Finder finder];
51 -       NSApplication *app = [NSApplication sharedApplication];
52 +  Finder *finder;
53 +       NSApplication *app;
54 +
55 +#ifdef GS_PASS_ARGUMENTS
56 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
57 +#endif
58 +
59 +       finder = [Finder finder];
60 +       app = [NSApplication sharedApplication];
61    
62  #ifdef GNUSTEP
63         createMenu();
64 diff -ur orig-GWorkspace-0.6.5/GWNet/main.m GWorkspace-0.6.5/GWNet/main.m
65 --- orig-GWorkspace-0.6.5/GWNet/main.m  2004-01-20 06:21:31.000000000 -0700
66 +++ GWorkspace-0.6.5/GWNet/main.m       2004-11-09 02:50:21.898824742 -0700
67 @@ -35,8 +35,15 @@
68  int main(int argc, char **argv, char **env)
69  {
70         CREATE_AUTORELEASE_POOL (pool);
71 -  GWNet *gwnet = [GWNet gwnet];
72 -       NSApplication *app = [NSApplication sharedApplication];
73 +  GWNet *gwnet;
74 +       NSApplication *app;
75 +
76 +#ifdef GS_PASS_ARGUMENTS
77 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
78 +#endif
79 +       
80 +       gwnet = [GWNet gwnet];
81 +       app = [NSApplication sharedApplication];
82    
83  #ifdef GNUSTEP
84         createMenu();
85 diff -ur orig-GWorkspace-0.6.5/GWorkspace/main.m GWorkspace-0.6.5/GWorkspace/main.m
86 --- orig-GWorkspace-0.6.5/GWorkspace/main.m     2004-05-17 04:42:29.000000000 -0600
87 +++ GWorkspace-0.6.5/GWorkspace/main.m  2004-11-09 02:50:21.898824742 -0700
88 @@ -38,8 +38,15 @@
89  int main(int argc, char **argv, char **env)
90  {
91         CREATE_AUTORELEASE_POOL (pool);
92 -  GWorkspace *gw = [GWorkspace gworkspace];
93 -       NSApplication *app = [NSApplication sharedApplication];
94 +  GWorkspace *gw;
95 +       NSApplication *app;
96 +
97 +#ifdef GS_PASS_ARGUMENTS
98 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
99 +#endif
100 +
101 +       gw      = [GWorkspace gworkspace];
102 +       app = [NSApplication sharedApplication];
103    
104  #ifdef GNUSTEP
105         createMenu();
106 diff -ur orig-GWorkspace-0.6.5/Inspector/main.m GWorkspace-0.6.5/Inspector/main.m
107 --- orig-GWorkspace-0.6.5/Inspector/main.m      2004-02-19 18:03:49.000000000 -0700
108 +++ GWorkspace-0.6.5/Inspector/main.m   2004-11-09 02:50:21.898824742 -0700
109 @@ -35,8 +35,15 @@
110  int main(int argc, char **argv, char **env)
111  {
112         CREATE_AUTORELEASE_POOL (pool);
113 -  Inspector *inspector = [Inspector inspector];
114 -       NSApplication *app = [NSApplication sharedApplication];
115 +  Inspector *inspector;
116 +       NSApplication *app;
117 +
118 +#ifdef GS_PASS_ARGUMENTS
119 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
120 +#endif
121 +
122 +       inspector = [Inspector inspector];
123 +       app     = [NSApplication sharedApplication];
124    
125  #ifdef GNUSTEP
126         createMenu();
127 diff -ur orig-GWorkspace-0.6.5/Operation/main.m GWorkspace-0.6.5/Operation/main.m
128 --- orig-GWorkspace-0.6.5/Operation/main.m      2004-03-08 06:09:17.000000000 -0700
129 +++ GWorkspace-0.6.5/Operation/main.m   2004-11-09 02:50:21.899824603 -0700
130 @@ -35,8 +35,15 @@
131  int main(int argc, char **argv, char **env)
132  {
133         CREATE_AUTORELEASE_POOL (pool);
134 -  Operation *operation = [Operation operation];
135 -       NSApplication *app = [NSApplication sharedApplication];
136 +  Operation *operation;
137 +       NSApplication *app;
138 +
139 +#ifdef GS_PASS_ARGUMENTS
140 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
141 +#endif
142 +
143 +       operation       = [Operation operation];
144 +       app     = [NSApplication sharedApplication];
145    
146  #ifdef GNUSTEP
147         createMenu();
148 diff -ur orig-GWorkspace-0.6.5/Utilities/findfile/findfile.m GWorkspace-0.6.5/Utilities/findfile/findfile.m
149 --- orig-GWorkspace-0.6.5/Utilities/findfile/findfile.m 2003-09-26 04:25:38.000000000 -0600
150 +++ GWorkspace-0.6.5/Utilities/findfile/findfile.m      2004-11-09 02:54:24.510959690 -0700
151 @@ -429,11 +429,16 @@
152  
153  @end
154  
155 -int main(int argc, char** argv)
156 +int main(int argc, char** argv, char** env)
157  {
158         FindFile *findfile;
159    
160    CREATE_AUTORELEASE_POOL (pool);
161 +
162 +#ifdef GS_PASS_ARGUMENTS
163 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
164 +#endif
165 +
166         findfile = [[FindFile alloc] init];
167    
168    if (findfile) {
169 diff -ur orig-GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m
170 --- orig-GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m       2004-04-14 04:33:21.000000000 -0600
171 +++ GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m    2004-11-09 02:54:08.381211163 -0700
172 @@ -625,7 +625,7 @@
173  @end
174  
175  
176 -int main(int argc, char** argv)
177 +int main(int argc, char** argv, char** env)
178  {
179         FSWatcher *fsw;
180  
181 @@ -641,6 +641,10 @@
182           default:
183             exit(0);
184         }
185 +
186 +#ifdef GS_PASS_ARGUMENTS
187 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
188 +#endif
189    
190    CREATE_AUTORELEASE_POOL (pool);
191         fsw = [[FSWatcher alloc] init];
192 diff -ur orig-GWorkspace-0.6.5/Utilities/thumbnailer/main.m GWorkspace-0.6.5/Utilities/thumbnailer/main.m
193 --- orig-GWorkspace-0.6.5/Utilities/thumbnailer/main.m  2003-09-26 04:25:38.000000000 -0600
194 +++ GWorkspace-0.6.5/Utilities/thumbnailer/main.m       2004-11-09 02:54:42.041512685 -0700
195 @@ -679,6 +679,10 @@
196           default:
197             exit(0);
198         }
199 +
200 +#ifdef GS_PASS_ARGUMENTS
201 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env_c];
202 +#endif
203    
204    pool = [NSAutoreleasePool new];
205         thumbnailer = [[Thumbnailer alloc] init];
206 diff -ur orig-GWorkspace-0.6.5/Utilities/wopen/wopen.m GWorkspace-0.6.5/Utilities/wopen/wopen.m
207 --- orig-GWorkspace-0.6.5/Utilities/wopen/wopen.m       2003-07-12 07:42:09.000000000 -0600
208 +++ GWorkspace-0.6.5/Utilities/wopen/wopen.m    2004-11-09 02:54:56.042558347 -0700
209 @@ -37,6 +37,10 @@
210    NSString *fullPath = nil;
211    BOOL isDir = NO;
212    id gworkspace = nil;
213 +
214 +#ifdef GS_PASS_ARGUMENTS
215 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env_c];
216 +#endif
217     
218    pool = [NSAutoreleasePool new];
219    fm = [NSFileManager defaultManager];
This page took 0.218755 seconds and 3 git commands to generate.