mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 04:00:47 +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
|
@ -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…
Add table
Add a link
Reference in a new issue