mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +00:00
Post info about old width when posting notification about column resized
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7443 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
abab28e393
commit
d9b7ed8e0b
1 changed files with 6 additions and 1 deletions
|
@ -115,6 +115,8 @@
|
|||
*/
|
||||
- (void)setWidth: (float)newWidth
|
||||
{
|
||||
float oldWidth = _width;
|
||||
|
||||
if (newWidth > _max_width)
|
||||
newWidth = _max_width;
|
||||
else if (newWidth < _min_width)
|
||||
|
@ -132,7 +134,10 @@
|
|||
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
postNotificationName: NSTableViewColumnDidResizeNotification
|
||||
object: _tableView];
|
||||
object: _tableView
|
||||
userInfo: [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[NSNumber numberWithFloat: oldWidth],
|
||||
@"NSOldWidth", nil]];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue