- fix build for gnustep-devel

This commit is contained in:
Dirk Meyer 2009-11-14 22:52:22 +00:00
parent 1b8c74b380
commit f8f3cc8682
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=244269
2 changed files with 45 additions and 2 deletions

View file

@ -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;

View file

@ -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];