mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 13:30:48 +00:00
Force tabViewType to be something we support. To be fixed in a later branch to add other renderings for tabview since this branch is specific to controllers
This commit is contained in:
parent
7bb2123da6
commit
d41635855f
5 changed files with 18 additions and 4 deletions
|
@ -170,6 +170,16 @@
|
|||
{
|
||||
NSTabView *tv = [coder decodeObjectForKey: @"NSTabView"];
|
||||
[self setTabView: tv];
|
||||
|
||||
// Currently we only support the tabs being on the top or the bottom.
|
||||
// The rendering code doesn't support anything outside of these two
|
||||
// cases. Here we force the use of the top case, when it is outside
|
||||
// of either of the cases we handle... this is temporary. FIXME
|
||||
if ([tv tabViewType] != NSTopTabsBezelBorder &&
|
||||
[tv tabViewType] != NSBottomTabsBezelBorder)
|
||||
{
|
||||
[tv setTabViewType: NSTopTabsBezelBorder];
|
||||
}
|
||||
}
|
||||
if ([coder containsValueForKey: @"NSTabViewItems"])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue