From f5630b7dffa2f0d85ea39e6184e826e2a8261e65 Mon Sep 17 00:00:00 2001 From: ritsuka Date: Thu, 19 Mar 2015 19:44:22 +0000 Subject: [PATCH] MacGui: bind angle popup to the angle property of HBJob. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7007 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/English.lproj/MainWindow.xib | 65 ++++++++++++++++------------- macosx/HBJob+UIAdditions.m | 4 +- 2 files changed, 38 insertions(+), 31 deletions(-) diff --git a/macosx/English.lproj/MainWindow.xib b/macosx/English.lproj/MainWindow.xib index 30844e02c..796caf70a 100644 --- a/macosx/English.lproj/MainWindow.xib +++ b/macosx/English.lproj/MainWindow.xib @@ -1,9 +1,9 @@ - + - + @@ -171,33 +171,6 @@ - - - - - - - - - - - - - - - - - NSIsNotNil - - - - - - NSNegateBoolean - - - - @@ -590,6 +563,40 @@ + + + + + + + + + + + + + + + + + +IA + + + + + + NSIsNotNil + + + + + + NSNegateBoolean + + + + diff --git a/macosx/HBJob+UIAdditions.m b/macosx/HBJob+UIAdditions.m index 500026a3a..a289ddb51 100644 --- a/macosx/HBJob+UIAdditions.m +++ b/macosx/HBJob+UIAdditions.m @@ -38,9 +38,9 @@ static NSDictionary *shortHeightAttr; - (NSArray *)angles { NSMutableArray *angles = [NSMutableArray array]; - for (int i = 0; i < self.title.angles; i++) + for (int i = 1; i <= self.title.angles; i++) { - [angles addObject:[NSString stringWithFormat: @"%d", i + 1]]; + [angles addObject:[NSString stringWithFormat: @"%d", i]]; } return angles; } -- 2.40.0