* Source/GSThemeDrawing.m (-drawTabViewRect:...selectedItem:),

* Source/NSTabView.m (-drawRect:): Move the select logic from
theme into normal code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35686 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2012-10-14 19:21:55 +00:00
parent e85b16bc05
commit ce25719c03
3 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2012-10-14 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSThemeDrawing.m (-drawTabViewRect:...selectedItem:),
* Source/NSTabView.m (-drawRect:): Move the select logic from
theme into normal code.
2012-10-13 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSBox.h,

View file

@ -1658,10 +1658,6 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
BOOL truncate = [(NSTabView *)view allowsTruncatedLabels];
NSTabViewType type = [(NSTabView *)view tabViewType];
// Make sure some tab is selected
if (!selected && howMany > 0)
[(NSTabView *)view selectFirstTabViewItem: nil];
DPSgsave(ctxt);
switch (type)

View file

@ -468,6 +468,12 @@
- (void) drawRect: (NSRect)rect
{
// Make sure some tab is selected
if ((_selected == nil) && ([_items count] > 0))
{
[self selectFirstTabViewItem: nil];
}
[[GSTheme theme] drawTabViewRect: rect
inView: self
withItems: _items