mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 12:40:38 +00:00
Added the possibility to customize the title view look and behavior in a theme
with a GSTitleView subclass. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29419 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
57cdb1250b
commit
05a3aad048
4 changed files with 26 additions and 3 deletions
|
@ -42,6 +42,7 @@
|
|||
#include "AppKit/PSOperators.h"
|
||||
#include "AppKit/NSImage.h"
|
||||
|
||||
#include "GNUstepGUI/GSTheme.h"
|
||||
#include "GNUstepGUI/GSTitleView.h"
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
@ -600,7 +601,8 @@ static NSMapTable *viewInfo = 0;
|
|||
|
||||
if (needTitleView == YES && _titleView == nil)
|
||||
{
|
||||
_titleView = [[GSTitleView alloc] initWithOwner: _attachedMenu];
|
||||
Class titleViewClass = [[GSTheme theme] titleViewClassForMenuView: self];
|
||||
_titleView = [[titleViewClass alloc] initWithOwner: _attachedMenu];
|
||||
[self addSubview: _titleView];
|
||||
RELEASE(_titleView);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue