diff --git a/AppKit/CPButtonBar.j b/AppKit/CPButtonBar.j index 0692f2ae7..75658bcca 100644 --- a/AppKit/CPButtonBar.j +++ b/AppKit/CPButtonBar.j @@ -46,4 +46,11 @@ [bezelView setBackgroundColor:[self currentValueForThemedAttributeName:@"bezel-color"]]; } +- (void)addSubview:(CPView)aSubview +{ + [super addSubview:aSubview]; + + [aSubview setAutoresizingMask:CPViewMinXMargin]; +} + @end diff --git a/AppKit/CPMenu.j b/AppKit/CPMenu.j index cb11d16f1..4e291c0f7 100644 --- a/AppKit/CPMenu.j +++ b/AppKit/CPMenu.j @@ -54,6 +54,8 @@ var _CPMenuBarVisible = NO, */ @implementation CPMenu : CPObject { + CPMenu _supermenu; + CPString _title; CPMutableArray _items; @@ -61,7 +63,7 @@ var _CPMenuBarVisible = NO, BOOL _autoenablesItems; BOOL _showsStateColumn; - + id _delegate; CPMenuItem _highlightedIndex;