NSMenuView.m mouse tracking code changes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16265 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2003-03-25 20:00:13 +00:00
parent 360bfffc6f
commit f3630c00ae

View file

@ -1,17 +1,23 @@
2003-03-25 Serg Stoyan <stoyan@on.com.ua> 2003-03-25 Serg Stoyan <stoyan@on.com.ua>
* Source/NSMenuView.m * Source/NSMenuView.m
(setWindowFrameForAttachingToRect:): call sizeToFit only if cell's (setWindowFrameForAttachingToRect:):Compute frame if number of
frame changed (patch by Michael Hanni). Compute frame if number of
items > 0 instead of > 1 (fixes size problem when there is 1 item items > 0 instead of > 1 (fixes size problem when there is 1 item
in popup button's menu). in popup button's menu).
(sizeToFit): optimized and fixed offset calculation. (sizeToFit): optimized and fixed offsets calculation.
* Source/NSMenuItemCell.m * Source/NSMenuItemCell.m
(imageRectForBounds:): removed pad adding between state image and (imageRectForBounds:): removed pad adding between state image and
title image and text, because [NSMenuView sizeToFit] do this. title image and text, because [NSMenuView sizeToFit] does this.
(titleRectForBounds:): ditto. (titleRectForBounds:): ditto.
2003-03-25 Michael Hanni <michael@deviant-behavior.com>
* Source/NSMenuView.m (-trackWithEvent:): reset highlighted items in a
submenu that we leave for a supermenu.
(setWindowFrameForAttachingToRect:): call sizeToFit only if cell's
frame changed.
2003-03-24 Adam Fedor <fedor@gnu.org> 2003-03-24 Adam Fedor <fedor@gnu.org>
* Merge from 0.8.5 branch * Merge from 0.8.5 branch