mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Added missing include for GSGuiPrivate.h.
(initWithContentRect:...screen:, updateFromPrintInfo) Removed compiler warning about signed/unsigned comparision. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16993 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
32db96f136
commit
bde7ea7f4a
1 changed files with 8 additions and 4 deletions
|
@ -41,6 +41,7 @@
|
|||
#include "AppKit/NSPopUpButton.h"
|
||||
#include "AppKit/NSSavePanel.h"
|
||||
#include "AppKit/NSView.h"
|
||||
#include "AppKit/GSGuiPrivate.h"
|
||||
|
||||
static NSPrintPanel *shared_instance;
|
||||
|
||||
|
@ -101,7 +102,7 @@ static NSPrintPanel *shared_instance;
|
|||
defer: (BOOL)flag
|
||||
screen: (NSScreen*)aScreen
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
id control;
|
||||
NSArray *subviews, *list;
|
||||
NSString *panel;
|
||||
|
@ -116,7 +117,7 @@ static NSPrintPanel *shared_instance;
|
|||
return nil;
|
||||
|
||||
panel = [GSGuiBundle() pathForResource: GSPANELNAME ofType: @"gorm"
|
||||
inDirectory: nil];
|
||||
inDirectory: nil];
|
||||
if (panel == nil)
|
||||
{
|
||||
NSRunAlertPanel(@"Error", @"Could not find print panel resource",
|
||||
|
@ -390,8 +391,9 @@ static NSPrintPanel *shared_instance;
|
|||
list = [printer stringListForKey:@"Resolution" inTable: @"PPD"];
|
||||
if ([list count])
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
NSString *display, *option;
|
||||
|
||||
for (i = 0; i < [list count]; i++)
|
||||
{
|
||||
NSString *key = [list objectAtIndex: i];
|
||||
|
@ -427,14 +429,16 @@ static NSPrintPanel *shared_instance;
|
|||
{
|
||||
NSString *manual;
|
||||
NSArray *list;
|
||||
|
||||
manual = [printer stringForKey:@"DefaultManualFeed" inTable: @"PPD"];
|
||||
if (manual)
|
||||
[control addItemWithTitle: @"Manual"];
|
||||
list = [printer stringListForKey:@"InputSlot" inTable: @"PPD"];
|
||||
if ([list count])
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
NSString *display, *option;
|
||||
|
||||
for (i = 0; i < [list count]; i++)
|
||||
{
|
||||
NSString *paper = [list objectAtIndex: i];
|
||||
|
|
Loading…
Reference in a new issue