]> git.pld-linux.org Git - packages/GWorkspace.git/blob - GWorkspace-initWithArguments.patch
d812e816cedc2fa9e589f137e280d5228dbeada1
[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:44:47.754466335 -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:44:47.754466335 -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:44:47.754466335 -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:44:47.754466335 -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:44:47.755466195 -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:44:47.755466195 -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:44:47.755466195 -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:46:37.008216133 -0700
151 @@ -434,6 +434,11 @@
152         FindFile *findfile;
153    
154    CREATE_AUTORELEASE_POOL (pool);
155 +
156 +#ifdef GS_PASS_ARGUMENTS
157 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
158 +#endif
159 +
160         findfile = [[FindFile alloc] init];
161    
162    if (findfile) {
163 Only in GWorkspace-0.6.5/Utilities/findfile: findfile.m~
164 diff -ur orig-GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m
165 --- orig-GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m       2004-04-14 04:33:21.000000000 -0600
166 +++ GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m    2004-11-09 02:45:58.866540145 -0700
167 @@ -641,6 +641,10 @@
168           default:
169             exit(0);
170         }
171 +
172 +#ifdef GS_PASS_ARGUMENTS
173 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
174 +#endif
175    
176    CREATE_AUTORELEASE_POOL (pool);
177         fsw = [[FSWatcher alloc] init];
178 Only in GWorkspace-0.6.5/Utilities/fswatcher: fswatcher.m~
179 diff -ur orig-GWorkspace-0.6.5/Utilities/thumbnailer/main.m GWorkspace-0.6.5/Utilities/thumbnailer/main.m
180 --- orig-GWorkspace-0.6.5/Utilities/thumbnailer/main.m  2003-09-26 04:25:38.000000000 -0600
181 +++ GWorkspace-0.6.5/Utilities/thumbnailer/main.m       2004-11-09 02:47:13.995053320 -0700
182 @@ -679,6 +679,10 @@
183           default:
184             exit(0);
185         }
186 +
187 +#ifdef GS_PASS_ARGUMENTS
188 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
189 +#endif
190    
191    pool = [NSAutoreleasePool new];
192         thumbnailer = [[Thumbnailer alloc] init];
193 Only in GWorkspace-0.6.5/Utilities/thumbnailer: main.m~
194 diff -ur orig-GWorkspace-0.6.5/Utilities/wopen/wopen.m GWorkspace-0.6.5/Utilities/wopen/wopen.m
195 --- orig-GWorkspace-0.6.5/Utilities/wopen/wopen.m       2003-07-12 07:42:09.000000000 -0600
196 +++ GWorkspace-0.6.5/Utilities/wopen/wopen.m    2004-11-09 02:47:40.528349665 -0700
197 @@ -37,6 +37,10 @@
198    NSString *fullPath = nil;
199    BOOL isDir = NO;
200    id gworkspace = nil;
201 +
202 +#ifdef GS_PASS_ARGUMENTS
203 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
204 +#endif
205     
206    pool = [NSAutoreleasePool new];
207    fm = [NSFileManager defaultManager];
208 Only in GWorkspace-0.6.5/Utilities/wopen: wopen.m~
This page took 0.096769 seconds and 2 git commands to generate.