mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:10:39 +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
694c273aee
commit
cc37831c44
6 changed files with 80 additions and 4 deletions
|
@ -57,6 +57,7 @@
|
|||
#import "AppKit/NSWorkspace.h"
|
||||
|
||||
#include "GSGuiPrivate.h"
|
||||
#include "GNUstepGUI/GSTheme.h"
|
||||
|
||||
#define _SAVE_PANEL_X_PAD 5
|
||||
#define _SAVE_PANEL_Y_PAD 4
|
||||
|
@ -671,7 +672,8 @@ selectCellWithString: (NSString*)title
|
|||
{
|
||||
if (_gs_gui_save_panel == nil)
|
||||
{
|
||||
_gs_gui_save_panel = [[NSSavePanel alloc] init];
|
||||
Class savePanelClass = [[GSTheme theme] savePanelClass];
|
||||
_gs_gui_save_panel = [[savePanelClass alloc] init];
|
||||
}
|
||||
|
||||
[_gs_gui_save_panel _resetDefaults];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue