Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gnustep/libs-gui into NSBrowser_b…
Browse files Browse the repository at this point in the history
…indings_branch
  • Loading branch information
gcasa committed Sep 28, 2024
2 parents 35fb894 + fb61a0f commit fbad487
Show file tree
Hide file tree
Showing 8 changed files with 230 additions and 128 deletions.
1 change: 1 addition & 0 deletions Headers/Additions/GNUstepGUI/GSHbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
</unit>
*/
APPKIT_EXPORT_CLASS
@interface GSHbox: GSTable
{
BOOL _haveViews;
Expand Down
2 changes: 1 addition & 1 deletion Headers/Additions/GNUstepGUI/GSPrintOperation.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
@class NSView;
@class NSPrintInfo;


APPKIT_EXPORT_CLASS
@interface GSPrintOperation: NSPrintOperation
{
}
Expand Down
1 change: 1 addition & 0 deletions Headers/Additions/GNUstepGUI/GSTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
</section>
</unit>
*/
APPKIT_EXPORT_CLASS
@interface GSTable: NSView
{
int _numberOfRows;
Expand Down
3 changes: 2 additions & 1 deletion Source/GSGuiPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#import <Foundation/NSBundle.h>
#import <Foundation/NSCoder.h>
#import "AppKit/AppKitDefines.h"
#include "GNUstepBase/GSConfig.h"
#include <math.h>

Expand All @@ -40,7 +41,7 @@
* Should be only used inside the gnustep-gui library. Implemented
* in Source/NSApplication.m
*/
NSBundle *GSGuiBundle (void);
APPKIT_EXPORT NSBundle *GSGuiBundle (void);

/*
* Localize a message of the gnustep-gui library.
Expand Down
4 changes: 4 additions & 0 deletions Source/GSMemoryPanel.m
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ - (id) init
NSButton *button;

/* Activate debugging of allocation. */
#ifndef NDEBUG
GSDebugAllocationActive (YES);
#endif

hbox = [GSHbox new];
[hbox setDefaultMinXMargin: 5];
Expand Down Expand Up @@ -359,6 +361,7 @@ - (void) snapshot: (id)sender

- (void) update: (id)sender
{
#ifndef NDEBUG
Class *classList = GSDebugAllocationClassList ();
Class *pointer;
GSMemoryPanelEntry *entry;
Expand Down Expand Up @@ -388,6 +391,7 @@ - (void) update: (id)sender
NSZoneFree(NSDefaultMallocZone(), classList);

[array sortUsingSelector: orderingBy];
#endif

[table reloadData];
}
Expand Down
9 changes: 6 additions & 3 deletions Source/NSBox.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<abstract>Simple box view that can display a border and title
</abstract>
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright (C) 1996-2024 Free Software Foundation, Inc.
Author: Scott Christley <scottc@net-community.com>
Date: 1996
Expand Down Expand Up @@ -41,6 +41,7 @@
#import "AppKit/NSTextFieldCell.h"
#import "AppKit/NSWindow.h"
#import "GNUstepGUI/GSTheme.h"
#import "GSGuiPrivate.h"

#include <math.h>

Expand Down Expand Up @@ -637,10 +638,12 @@ - (id) initWithCoder: (NSCoder*)aDecoder
}
else
{
NSInteger tempInt;

[aDecoder decodeValueOfObjCType: @encode(id) at: &_cell];
_offsets = [aDecoder decodeSize];
[aDecoder decodeValueOfObjCType: @encode(int)
at: &_border_type];
decode_NSInteger(aDecoder, &tempInt);
_border_type = tempInt;
[aDecoder decodeValueOfObjCType: @encode(int)
at: &_title_position];

Expand Down
Loading

0 comments on commit fbad487

Please sign in to comment.