mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
* 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:
parent
e85b16bc05
commit
ce25719c03
3 changed files with 12 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue