mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 07:50:48 +00:00
* Headers/Additions/GNUstepGUI/GSTheme.h: Add category to allow
overriding of classes used for save/open panels. * Source/GNUmakefile: Build new category. * Source/GSThemeOpenSavePanels.m: Implementation of methods -savePanelClass and -openPanelClass. * Source/NSOpenPanel.m: Modifications to use class from current theme. * Source/NSSavePanel.m: Modifications to use class from current theme. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29791 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8ae82c7bb3
commit
1e25c52b89
6 changed files with 80 additions and 4 deletions
|
@ -53,6 +53,7 @@
|
|||
#import "AppKit/NSOpenPanel.h"
|
||||
|
||||
#include "GSGuiPrivate.h"
|
||||
#include "GNUstepGUI/GSTheme.h"
|
||||
|
||||
static NSString *
|
||||
pathToColumn(NSBrowser *browser, int column)
|
||||
|
@ -262,8 +263,10 @@ static NSOpenPanel *_gs_gui_open_panel = nil;
|
|||
+ (NSOpenPanel *) openPanel
|
||||
{
|
||||
if (!_gs_gui_open_panel)
|
||||
_gs_gui_open_panel = [[NSOpenPanel alloc] init];
|
||||
|
||||
{
|
||||
Class openPanelClass = [[GSTheme theme] openPanelClass];
|
||||
_gs_gui_open_panel = [[openPanelClass alloc] init];
|
||||
}
|
||||
[_gs_gui_open_panel _resetDefaults];
|
||||
|
||||
return _gs_gui_open_panel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue