mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-04 02:00:41 +00:00
Pass more info in hide/unhide notifications
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22443 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2889c0f748
commit
a2567d4db7
2 changed files with 16 additions and 9 deletions
|
@ -11,6 +11,7 @@
|
||||||
* Source/NSMenuView.m: ([-sizeToFit]) Fix bug #15631
|
* Source/NSMenuView.m: ([-sizeToFit]) Fix bug #15631
|
||||||
([-locationForSubmenu:]) for horizontal root menus, make successive
|
([-locationForSubmenu:]) for horizontal root menus, make successive
|
||||||
submenus be positioned with top left corner next to item in parent.
|
submenus be positioned with top left corner next to item in parent.
|
||||||
|
* Source/NSApplication.m: Pass info in hide/unhide notifications.
|
||||||
|
|
||||||
2006-02-04 Richard Frith-Macdonald <rfm@gnu.org>
|
2006-02-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -2212,9 +2212,10 @@ image.</p><p>See Also: -applicationIconImage</p>
|
||||||
{
|
{
|
||||||
if (_app_is_hidden == NO)
|
if (_app_is_hidden == NO)
|
||||||
{
|
{
|
||||||
NSArray *windows_list = [self windows];
|
NSArray *windows_list = [self windows];
|
||||||
unsigned count = [windows_list count];
|
unsigned count = [windows_list count];
|
||||||
unsigned i;
|
NSDictionary *info;
|
||||||
|
unsigned i;
|
||||||
|
|
||||||
[nc postNotificationName: NSApplicationWillHideNotification
|
[nc postNotificationName: NSApplicationWillHideNotification
|
||||||
object: self];
|
object: self];
|
||||||
|
@ -2257,12 +2258,14 @@ image.</p><p>See Also: -applicationIconImage</p>
|
||||||
[self deactivate];
|
[self deactivate];
|
||||||
_unhide_on_activation = YES;
|
_unhide_on_activation = YES;
|
||||||
|
|
||||||
|
info = [self _notificationUserInfo];
|
||||||
[nc postNotificationName: NSApplicationDidHideNotification
|
[nc postNotificationName: NSApplicationDidHideNotification
|
||||||
object: self];
|
object: self
|
||||||
|
userInfo: info];
|
||||||
[[[NSWorkspace sharedWorkspace] notificationCenter]
|
[[[NSWorkspace sharedWorkspace] notificationCenter]
|
||||||
postNotificationName: NSApplicationDidHideNotification
|
postNotificationName: NSApplicationDidHideNotification
|
||||||
object: [NSWorkspace sharedWorkspace]
|
object: [NSWorkspace sharedWorkspace]
|
||||||
userInfo: [self _notificationUserInfo]];
|
userInfo: info];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2300,8 +2303,9 @@ image.</p><p>See Also: -applicationIconImage</p>
|
||||||
{
|
{
|
||||||
if (_app_is_hidden == YES)
|
if (_app_is_hidden == YES)
|
||||||
{
|
{
|
||||||
unsigned count;
|
NSDictionary *info;
|
||||||
unsigned i;
|
unsigned count;
|
||||||
|
unsigned i;
|
||||||
|
|
||||||
[nc postNotificationName: NSApplicationWillUnhideNotification
|
[nc postNotificationName: NSApplicationWillUnhideNotification
|
||||||
object: self];
|
object: self];
|
||||||
|
@ -2325,12 +2329,14 @@ image.</p><p>See Also: -applicationIconImage</p>
|
||||||
}
|
}
|
||||||
[[_app_icon_window contentView] setNeedsDisplay: YES];
|
[[_app_icon_window contentView] setNeedsDisplay: YES];
|
||||||
|
|
||||||
|
info = [self _notificationUserInfo];
|
||||||
[nc postNotificationName: NSApplicationDidUnhideNotification
|
[nc postNotificationName: NSApplicationDidUnhideNotification
|
||||||
object: self];
|
object: self
|
||||||
|
userInfo: info];
|
||||||
[[[NSWorkspace sharedWorkspace] notificationCenter]
|
[[[NSWorkspace sharedWorkspace] notificationCenter]
|
||||||
postNotificationName: NSApplicationDidUnhideNotification
|
postNotificationName: NSApplicationDidUnhideNotification
|
||||||
object: [NSWorkspace sharedWorkspace]
|
object: [NSWorkspace sharedWorkspace]
|
||||||
userInfo: [self _notificationUserInfo]];
|
userInfo: info];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue