]> git.pld-linux.org Git - packages/gnustep-gui.git/commitdiff
- from http://www.roard.com/camaelon
authoraredridel <aredridel@pld-linux.org>
Fri, 25 Jul 2003 19:16:23 +0000 (19:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- updated to merge with 0.8.8

Changed files:
    gnustep-gui-themes.patch -> 1.1

gnustep-gui-themes.patch [new file with mode: 0644]

diff --git a/gnustep-gui-themes.patch b/gnustep-gui-themes.patch
new file mode 100644 (file)
index 0000000..d4be9fe
--- /dev/null
@@ -0,0 +1,119 @@
+diff -ur gnustep-gui-0.8.7-orig/Source/Functions.m gnustep-gui-0.8.7/Source/Functions.m
+--- gnustep-gui-0.8.7-orig/Source/Functions.m  2003-06-13 09:01:10.000000000 -0600
++++ gnustep-gui-0.8.7/Source/Functions.m       2003-07-24 17:47:22.000000000 -0600
+@@ -566,9 +566,9 @@
+                              up_sides, grays, 6);
+     }
+-  DPSsetgray(ctxt, NSLightGray);
+-  DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect), 
+-            NSWidth(rect), NSHeight(rect));
++//  DPSsetgray(ctxt, NSLightGray);
++//  DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect), 
++//          NSWidth(rect), NSHeight(rect));
+ }
+ void
+@@ -602,9 +602,9 @@
+       DPSrectfill(ctxt, NSMaxX(aRect) - 2., NSMaxY(aRect) - 2., 1., 1.);
+     }
+-  DPSsetgray(ctxt, NSLightGray);
+-  DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect), 
+-            NSWidth(rect), NSHeight(rect));
++//  DPSsetgray(ctxt, NSLightGray);
++//  DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect), 
++//          NSWidth(rect), NSHeight(rect));
+ }
+ void 
+@@ -630,9 +630,9 @@
+                              up_sides, grays, 8);
+     }
+-  DPSsetgray(ctxt, NSLightGray);
+-  DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect), 
+-            NSWidth(rect), NSHeight(rect));
++//  DPSsetgray(ctxt, NSLightGray);
++//  DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect), 
++//          NSWidth(rect), NSHeight(rect));
+ }
+ void 
+@@ -658,9 +658,9 @@
+                              up_sides, grays, 8);
+     }
+-  DPSsetgray(ctxt, NSWhite);
+-  DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect), 
+-            NSWidth(rect), NSHeight(rect));
++//  DPSsetgray(ctxt, NSWhite);
++//  DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect), 
++//          NSWidth(rect), NSHeight(rect));
+ }
+ void 
+@@ -700,9 +700,9 @@
+                              up_sides, grays, 6);
+     }
+-  DPSsetgray(ctxt, NSLightGray);
+-  DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect), 
+-            NSWidth(rect), NSHeight(rect));
++//  DPSsetgray(ctxt, NSLightGray);
++//  DPSrectfill(ctxt, NSMinX(rect), NSMinY(rect), 
++//          NSWidth(rect), NSHeight(rect));
+ }
+ void 
+diff -ur gnustep-gui-0.8.7-orig/Source/NSApplication.m gnustep-gui-0.8.7/Source/NSApplication.m
+--- gnustep-gui-0.8.7-orig/Source/NSApplication.m      2003-06-13 09:01:11.000000000 -0600
++++ gnustep-gui-0.8.7/Source/NSApplication.m   2003-07-24 17:48:30.000000000 -0600
+@@ -221,7 +221,27 @@
+         _(@"Backend at path %@ doesn't contain the GSBackend class"), path);
+       [backend initializeBackend];
+       }
+-
++ 
++       /* hack to load arbitrary bundles - Alexander Malmberg 2002-05-09 */
++       {
++           NSUserDefaults *defs=[NSUserDefaults standardUserDefaults];
++           NSString *s=[defs stringForKey: @"GUIThemeBundles"];
++           NSArray *a=[s componentsSeparatedByString: @" "];
++           int i,c=[a count];
++           NSLog(@"try loading '%@'",s);
++           for (i=0;i<c;i++)
++           {
++              NSLog(@"try '%@'\n",[a objectAtIndex: i]);
++              NSBundle *b=[NSBundle bundleWithPath: [a objectAtIndex: i]];
++              if (!b)
++              {
++                  NSLog(@"Couldn't load theme bundle '%@'!",[a objectAtIndex: i]);
++                  continue;
++              }
++              [[[b principalClass] alloc] init];
++           }
++       }
++ 
+ #else
+       /* GSBackend will be in a separate library, so use the runtime
+        to find the class and avoid an unresolved reference problem */
+Only in gnustep-gui-0.8.7/Source: NSApplication.m~
+Only in gnustep-gui-0.8.7/Source: NSApplication.m.orig
+diff -ur gnustep-gui-0.8.7-orig/Source/NSColor.m gnustep-gui-0.8.7/Source/NSColor.m
+--- gnustep-gui-0.8.7-orig/Source/NSColor.m    2003-06-13 09:01:11.000000000 -0600
++++ gnustep-gui-0.8.7/Source/NSColor.m 2003-07-24 17:47:22.000000000 -0600
+@@ -698,6 +698,13 @@
+   return systemColorWithName(@"windowFrameTextColor");
+ }
+++ (void) setColor: (NSColor*) color forKey: (NSString*) key
++{
++        [systemColors setColor: color forKey: key];
++      [[systemDict objectForKey: key] recache];
++}
++
++
+ ////////////////////////////////////////////////////////////
+ //
+ // Instance methods
This page took 0.087997 seconds and 4 git commands to generate.