]> git.pld-linux.org Git - packages/gnustep-gui.git/blame - gnustep-gui-themes.patch
- release 3
[packages/gnustep-gui.git] / gnustep-gui-themes.patch
CommitLineData
ab6507fc 1diff -ur gnustep-gui-0.8.7-orig/Source/Functions.m gnustep-gui-0.8.7/Source/Functions.m
2--- gnustep-gui-0.8.7-orig/Source/Functions.m 2003-06-13 09:01:10.000000000 -0600
3+++ gnustep-gui-0.8.7/Source/Functions.m 2003-07-24 17:47:22.000000000 -0600
4@@ -566,9 +566,9 @@
5 up_sides, grays, 6);
6 }
7
8- DPSsetgray(ctxt, NSLightGray);
9- DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect),
10- NSWidth(rect), NSHeight(rect));
11+// DPSsetgray(ctxt, NSLightGray);
12+// DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect),
13+// NSWidth(rect), NSHeight(rect));
14 }
15
16 void
17@@ -602,9 +602,9 @@
18 DPSrectfill(ctxt, NSMaxX(aRect) - 2., NSMaxY(aRect) - 2., 1., 1.);
19 }
20
21- DPSsetgray(ctxt, NSLightGray);
22- DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect),
23- NSWidth(rect), NSHeight(rect));
24+// DPSsetgray(ctxt, NSLightGray);
25+// DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect),
26+// NSWidth(rect), NSHeight(rect));
27 }
28
29 void
30@@ -630,9 +630,9 @@
31 up_sides, grays, 8);
32 }
33
34- DPSsetgray(ctxt, NSLightGray);
35- DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect),
36- NSWidth(rect), NSHeight(rect));
37+// DPSsetgray(ctxt, NSLightGray);
38+// DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect),
39+// NSWidth(rect), NSHeight(rect));
40 }
41
42 void
43@@ -658,9 +658,9 @@
44 up_sides, grays, 8);
45 }
46
47- DPSsetgray(ctxt, NSWhite);
48- DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect),
49- NSWidth(rect), NSHeight(rect));
50+// DPSsetgray(ctxt, NSWhite);
51+// DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect),
52+// NSWidth(rect), NSHeight(rect));
53 }
54
55 void
56@@ -700,9 +700,9 @@
57 up_sides, grays, 6);
58 }
59
60- DPSsetgray(ctxt, NSLightGray);
61- DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect),
62- NSWidth(rect), NSHeight(rect));
63+// DPSsetgray(ctxt, NSLightGray);
64+// DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect),
65+// NSWidth(rect), NSHeight(rect));
66 }
67
68 void
69diff -ur gnustep-gui-0.8.7-orig/Source/NSApplication.m gnustep-gui-0.8.7/Source/NSApplication.m
70--- gnustep-gui-0.8.7-orig/Source/NSApplication.m 2003-06-13 09:01:11.000000000 -0600
71+++ gnustep-gui-0.8.7/Source/NSApplication.m 2003-07-24 17:48:30.000000000 -0600
72@@ -221,7 +221,27 @@
73 _(@"Backend at path %@ doesn't contain the GSBackend class"), path);
74 [backend initializeBackend];
75 }
76-
77+
78+ /* hack to load arbitrary bundles - Alexander Malmberg 2002-05-09 */
79+ {
80+ NSUserDefaults *defs=[NSUserDefaults standardUserDefaults];
81+ NSString *s=[defs stringForKey: @"GUIThemeBundles"];
82+ NSArray *a=[s componentsSeparatedByString: @" "];
83+ int i,c=[a count];
84+ NSLog(@"try loading '%@'",s);
85+ for (i=0;i<c;i++)
86+ {
87+ NSLog(@"try '%@'\n",[a objectAtIndex: i]);
88+ NSBundle *b=[NSBundle bundleWithPath: [a objectAtIndex: i]];
89+ if (!b)
90+ {
91+ NSLog(@"Couldn't load theme bundle '%@'!",[a objectAtIndex: i]);
92+ continue;
93+ }
94+ [[[b principalClass] alloc] init];
95+ }
96+ }
97+
98 #else
99 /* GSBackend will be in a separate library, so use the runtime
100 to find the class and avoid an unresolved reference problem */
101Only in gnustep-gui-0.8.7/Source: NSApplication.m~
102Only in gnustep-gui-0.8.7/Source: NSApplication.m.orig
103diff -ur gnustep-gui-0.8.7-orig/Source/NSColor.m gnustep-gui-0.8.7/Source/NSColor.m
104--- gnustep-gui-0.8.7-orig/Source/NSColor.m 2003-06-13 09:01:11.000000000 -0600
105+++ gnustep-gui-0.8.7/Source/NSColor.m 2003-07-24 17:47:22.000000000 -0600
106@@ -698,6 +698,13 @@
107 return systemColorWithName(@"windowFrameTextColor");
108 }
109
110++ (void) setColor: (NSColor*) color forKey: (NSString*) key
111+{
112+ [systemColors setColor: color forKey: key];
113+ [[systemDict objectForKey: key] recache];
114+}
115+
116+
117 ////////////////////////////////////////////////////////////
118 //
119 // Instance methods
This page took 0.058273 seconds and 4 git commands to generate.