diff options
Diffstat (limited to 'macosx/PictureController.mm')
-rw-r--r-- | macosx/PictureController.mm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index c274c196c..f8aec43ff 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -18,6 +18,15 @@ static int GetAlignedSize( int size ) @implementation PictureController +- (id)initWithDelegate:(id)del +{ + if (self = [super init]) + { + delegate = del; + } + return self; +} + - (void) SetHandle: (hb_handle_t *) handle { fHandle = handle; @@ -321,7 +330,6 @@ static int GetAlignedSize( int size ) { [self Display: HB_ANIMATE_NONE]; } - } - (IBAction) PreviousPicture: (id) sender @@ -346,6 +354,9 @@ static int GetAlignedSize( int size ) - (IBAction) ClosePanel: (id) sender { + if ([delegate respondsToSelector:@selector(pictureSettingsDidChange)]) + [delegate pictureSettingsDidChange]; + [NSApp endSheet: fPicturePanel]; [fPicturePanel orderOut: self]; } |