mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Remove some warnings and unused functions, finish implementation of encoding.
This commit is contained in:
parent
bd2372230f
commit
6c8691a082
3 changed files with 6 additions and 1 deletions
|
@ -130,11 +130,13 @@ typedef struct {
|
|||
NSInteger height;
|
||||
} MRect;
|
||||
|
||||
/*
|
||||
static inline MPoint MakePoint (NSInteger x, NSInteger y)
|
||||
{
|
||||
MPoint point = { x, y };
|
||||
return point;
|
||||
}
|
||||
*/
|
||||
|
||||
@interface NSMatrix (PrivateMethods)
|
||||
- (void) _renewRows: (NSInteger)row
|
||||
|
|
|
@ -273,6 +273,8 @@
|
|||
forKey: @"NSControlAction"];
|
||||
[coder encodeObject: _target
|
||||
forKey: @"NSControlTarget"];
|
||||
[coder encodeBool: _enabled
|
||||
forKey: @"NSEnabled"];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -280,6 +282,7 @@
|
|||
at: &_state];
|
||||
[coder encodeObject: NSStringFromSelector([self action])];
|
||||
[coder encodeObject: [self target]];
|
||||
[coder encodeBool: [self isEnabled]];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ typedef enum {
|
|||
static const int ItemBackViewX = 0;
|
||||
static const int ItemBackViewY = 0;
|
||||
static const int InsetItemViewX = 10;
|
||||
static const int InsetItemViewY = 26;
|
||||
// static const int InsetItemViewY = 26;
|
||||
static const int InsetItemTextX = 3;
|
||||
static const int InsetItemTextY = 4;
|
||||
|
||||
|
|
Loading…
Reference in a new issue