aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/burn
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2009-11-15 06:52:22 +0800
committerdinoex <dinoex@FreeBSD.org>2009-11-15 06:52:22 +0800
commitd659cdfb0be31f7e7b99f009e0c58c8619b4a18c (patch)
tree6411cf2531e93edbb623bd9903536549bf098059 /sysutils/burn
parent9bb919566707b8c87fdb5c729632cec7ea0b67d2 (diff)
downloadfreebsd-ports-gnome-d659cdfb0be31f7e7b99f009e0c58c8619b4a18c.tar.gz
freebsd-ports-gnome-d659cdfb0be31f7e7b99f009e0c58c8619b4a18c.tar.zst
freebsd-ports-gnome-d659cdfb0be31f7e7b99f009e0c58c8619b4a18c.zip
- fix build for gnustep-devel
Diffstat (limited to 'sysutils/burn')
-rw-r--r--sysutils/burn/files/patch-ExtProgressIndicator.m23
-rw-r--r--sysutils/burn/files/patch-WorkInProgress.m24
2 files changed, 45 insertions, 2 deletions
diff --git a/sysutils/burn/files/patch-ExtProgressIndicator.m b/sysutils/burn/files/patch-ExtProgressIndicator.m
index f0a5141869b2..c650d7a8465a 100644
--- a/sysutils/burn/files/patch-ExtProgressIndicator.m
+++ b/sysutils/burn/files/patch-ExtProgressIndicator.m
@@ -1,5 +1,5 @@
--- ExtProgressIndicator.m.orig 2005-05-12 17:58:49.000000000 +0200
-+++ ExtProgressIndicator.m 2008-05-03 09:35:27.000000000 +0200
++++ ExtProgressIndicator.m 2009-11-14 23:42:55.000000000 +0100
@@ -21,6 +21,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
@@ -9,3 +9,24 @@
#include <AppKit/NSColor.h>
#include <AppKit/NSParagraphStyle.h>
#include <Foundation/Foundation.h>
+@@ -29,6 +31,11 @@
+
+ #include "Constants.h"
+
++static inline NSSize
++my_sizeForBorderType (NSBorderType aType)
++{
++ return [[GSTheme theme] sizeForBorderType: aType];
++}
+
+ @implementation ExtProgressIndicator
+
+@@ -79,7 +86,7 @@
+
+ // Calculate the inside rect to be drawn
+ if (_isBezeled) {
+- NSSize borderSize = _sizeForBorderType (NSBezelBorder);
++ NSSize borderSize = my_sizeForBorderType (NSBezelBorder);
+ origRect = NSInsetRect(_bounds, borderSize.width, borderSize.height);
+ } else
+ origRect = _bounds;
diff --git a/sysutils/burn/files/patch-WorkInProgress.m b/sysutils/burn/files/patch-WorkInProgress.m
index dd2fd0060652..9a403a57faad 100644
--- a/sysutils/burn/files/patch-WorkInProgress.m
+++ b/sysutils/burn/files/patch-WorkInProgress.m
@@ -1,5 +1,5 @@
--- WorkInProgress.m.orig 2005-05-12 17:58:49.000000000 +0200
-+++ WorkInProgress.m 2008-12-24 01:53:34.000000000 +0100
++++ WorkInProgress.m 2009-11-14 23:48:17.000000000 +0100
@@ -23,6 +23,7 @@
#include <Foundation/Foundation.h>
@@ -8,3 +8,25 @@
#include "Functions.h"
#include "Constants.h"
+@@ -32,6 +33,12 @@
+ static NSString *nibName = @"WorkInProgress";
+ #define PI_LENGTH 2
+
++static inline NSSize
++my_sizeForBorderType (NSBorderType aType)
++{
++ return [[GSTheme theme] sizeForBorderType: aType];
++}
++
+ @implementation WorkInProgressIndicator
+
+ /** Display the next step
+@@ -77,7 +84,7 @@
+ [super drawRect: rect];
+
+ // Calculate the inside rect to be drawn
+- NSSize borderSize = _sizeForBorderType (NSBezelBorder);
++ NSSize borderSize = my_sizeForBorderType (NSBezelBorder);
+ r = NSInsetRect(_bounds, borderSize.width, borderSize.height);
+
+ value = [self doubleValue];