Revert the relationship between NSToolbar and GSToolbarView,

now the toolbar retains the view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27550 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2009-01-07 08:49:53 +00:00
parent e01cdd4cd1
commit 88160ba733
4 changed files with 27 additions and 37 deletions

View file

@ -325,7 +325,6 @@ static void initSystemExtensionsColors(void)
[[NSNotificationCenter defaultCenter] removeObserver: self];
RELEASE(_toolbar);
RELEASE(_clippedItemsMark);
RELEASE(_clipView);
@ -567,11 +566,7 @@ static void initSystemExtensionsColors(void)
if (_toolbar == toolbar)
return;
// We unset the toolbar view from the previous toolbar
[_toolbar _setToolbarView: nil];
ASSIGN(_toolbar, toolbar);
// We set the toolbar view on the new toolbar
[_toolbar _setToolbarView: self];
_toolbar = toolbar;
[_clippedItemsMark setToolbar: _toolbar];
// Load the toolbar in the toolbar view