NSMenuView.m: fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16197 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2003-03-18 16:22:44 +00:00
parent 15a1fb917c
commit ab062e79c7

View file

@ -1,3 +1,17 @@
2003-03-18 Serg Stoyan <stoyan@on.com.ua>
* Source/NSMenuView.m
([NSMenuTitleView titleSize]): Added.
([NSMenuTitleView drawRect:]): Switch to using titleSize:. Declaration
of attr variable moved to class declaration.
([NSMenuTitleView init]): Added to initialize attr variable.
(sizeToFit): Count missed state image offset. Do not add padding when
there's no key equivalent. Handle situations when tile view wider than
menu items, when there's no menu items and so on. (Side efect: menu of
application in Gorm resizes correctly while changing title, adding
shorcut etc.). Using [NSMenuTitleView titleSize] now for correct
determination of menu title's text width.
2003-03-17 Serg Stoyan <stoyan@on.com.ua>
* Source/NSMenuView.m