summaryrefslogtreecommitdiff
path: root/sysutils/burn/patches/patch-ab
blob: 00d12d927dc6bcccdf9601ee04b2819ef74237d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.2 2012/10/22 23:47:15 rh Exp $

Make this work with recent versions of GNUstep.

--- WorkInProgress.m.orig	2005-05-12 15:58:49.000000000 +0000
+++ WorkInProgress.m
@@ -23,6 +23,7 @@
 
 #include <Foundation/Foundation.h>
 #include <AppKit/AppKit.h>
+#include <GNUstepGUI/GSTheme.h>
 
 #include "Functions.h"
 #include "Constants.h"
@@ -77,7 +78,7 @@ static NSString *nibName = @"WorkInProgr
     [super drawRect: rect];
 
     // Calculate the inside rect to be drawn
-	NSSize borderSize = _sizeForBorderType (NSBezelBorder);
+	NSSize borderSize = [[GSTheme theme] sizeForBorderType: NSBezelBorder];
 	r = NSInsetRect(_bounds, borderSize.width, borderSize.height);
 
     value = [self doubleValue];