summaryrefslogtreecommitdiff
path: root/sysutils/burn/patches/patch-aa
blob: b660d05cee8215e9afee090fccf11f10caf65ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-aa,v 1.2 2012/10/22 23:47:15 rh Exp $

Make this compile with recent versions of GNUstep.

--- ExtProgressIndicator.m.orig	2005-05-12 15:58:49.000000000 +0000
+++ ExtProgressIndicator.m
@@ -22,8 +22,11 @@
  */
 
 #include <AppKit/NSColor.h>
+#include <AppKit/NSGraphics.h>
 #include <AppKit/NSParagraphStyle.h>
+#include <AppKit/NSAttributedString.h>
 #include <Foundation/Foundation.h>
+#include <GNUstepGUI/GSTheme.h>
 
 #include "ExtProgressIndicator.h"
 
@@ -79,7 +82,7 @@
 
     // Calculate the inside rect to be drawn
 	if (_isBezeled) {
-		NSSize borderSize = _sizeForBorderType (NSBezelBorder);
+		NSSize borderSize = [[GSTheme theme] sizeForBorderType: NSBezelBorder];
 		origRect = NSInsetRect(_bounds, borderSize.width, borderSize.height);
 	} else
 		origRect = _bounds;
@@ -96,7 +99,7 @@
             if (value > _maxValue)
                 value = _maxValue;
 
-            if (_isVertical){
+            if ([self isVertical]){
                 fillRect.size.height = 1;
                 fillRect.origin.y += NSHeight(origRect) * (value / (_maxValue - _minValue));
             } else {