mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +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
eeee6b5df8
commit
273e2cb8e4
2 changed files with 16 additions and 9 deletions
|
@ -11,6 +11,7 @@
|
|||
* Source/NSMenuView.m: ([-sizeToFit]) Fix bug #15631
|
||||
([-locationForSubmenu:]) for horizontal root menus, make successive
|
||||
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>
|
||||
|
||||
|
|
|
@ -2212,9 +2212,10 @@ image.</p><p>See Also: -applicationIconImage</p>
|
|||
{
|
||||
if (_app_is_hidden == NO)
|
||||
{
|
||||
NSArray *windows_list = [self windows];
|
||||
unsigned count = [windows_list count];
|
||||
unsigned i;
|
||||
NSArray *windows_list = [self windows];
|
||||
unsigned count = [windows_list count];
|
||||
NSDictionary *info;
|
||||
unsigned i;
|
||||
|
||||
[nc postNotificationName: NSApplicationWillHideNotification
|
||||
object: self];
|
||||
|
@ -2257,12 +2258,14 @@ image.</p><p>See Also: -applicationIconImage</p>
|
|||
[self deactivate];
|
||||
_unhide_on_activation = YES;
|
||||
|
||||
info = [self _notificationUserInfo];
|
||||
[nc postNotificationName: NSApplicationDidHideNotification
|
||||
object: self];
|
||||
object: self
|
||||
userInfo: info];
|
||||
[[[NSWorkspace sharedWorkspace] notificationCenter]
|
||||
postNotificationName: NSApplicationDidHideNotification
|
||||
object: [NSWorkspace sharedWorkspace]
|
||||
userInfo: [self _notificationUserInfo]];
|
||||
userInfo: info];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2300,8 +2303,9 @@ image.</p><p>See Also: -applicationIconImage</p>
|
|||
{
|
||||
if (_app_is_hidden == YES)
|
||||
{
|
||||
unsigned count;
|
||||
unsigned i;
|
||||
NSDictionary *info;
|
||||
unsigned count;
|
||||
unsigned i;
|
||||
|
||||
[nc postNotificationName: NSApplicationWillUnhideNotification
|
||||
object: self];
|
||||
|
@ -2325,12 +2329,14 @@ image.</p><p>See Also: -applicationIconImage</p>
|
|||
}
|
||||
[[_app_icon_window contentView] setNeedsDisplay: YES];
|
||||
|
||||
info = [self _notificationUserInfo];
|
||||
[nc postNotificationName: NSApplicationDidUnhideNotification
|
||||
object: self];
|
||||
object: self
|
||||
userInfo: info];
|
||||
[[[NSWorkspace sharedWorkspace] notificationCenter]
|
||||
postNotificationName: NSApplicationDidUnhideNotification
|
||||
object: [NSWorkspace sharedWorkspace]
|
||||
userInfo: [self _notificationUserInfo]];
|
||||
userInfo: info];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue