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:
qmathe 2010-01-27 11:29:07 +00:00
parent 57cdb1250b
commit 05a3aad048
4 changed files with 26 additions and 3 deletions

View file

@ -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);
}