mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:57:39 +00:00
Correct issue I introduced last night. Continue moving print panel/layout panel implementation to theme instead of print bundle.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38321 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e53b5e2e46
commit
d628aac2e3
4 changed files with 45 additions and 21 deletions
|
@ -49,6 +49,7 @@
|
|||
#import "AppKit/NSView.h"
|
||||
#import "GSGuiPrivate.h"
|
||||
#import "GNUstepGUI/GSPrinting.h"
|
||||
#import "GNUstepGUI/GSTheme.h"
|
||||
|
||||
static NSPrintPanel *shared_instance = nil;
|
||||
|
||||
|
@ -85,18 +86,12 @@ static NSPrintPanel *shared_instance = nil;
|
|||
//
|
||||
/** Load the appropriate bundle for the PrintPanel
|
||||
and alloc the class from that in our place
|
||||
(eg: GSLPRPrintPanel, GSCUPSPrintPanel).
|
||||
*/
|
||||
|
||||
+ (id) allocWithZone: (NSZone*) zone
|
||||
{
|
||||
Class principalClass;
|
||||
|
||||
principalClass = [[GSPrinting printingBundle] principalClass];
|
||||
|
||||
if (principalClass == nil)
|
||||
return nil;
|
||||
|
||||
return [[principalClass printPanelClass] allocWithZone: zone];
|
||||
Class cls = [[GSTheme theme] printPanelClass];
|
||||
return [cls allocWithZone: zone];
|
||||
}
|
||||
|
||||
/** Creates ( if needed) and returns a shared instance of the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue