mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
2004-11-09 19:00 Alexander Malmberg <alexander@malmberg.org>
* Tools/gpbs.m (main): If we get a -GSStartupNotification argument, post the notification after initializing. Fixes bug #10876. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20327 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c1adbba9c0
commit
95813706e3
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-11-09 19:00 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Tools/gpbs.m (main): If we get a -GSStartupNotification argument,
|
||||
post the notification after initializing. Fixes bug #10876.
|
||||
|
||||
2004-11-04 Adrian Robert <arobert@cogsci.ucsd.edu>
|
||||
|
||||
* Source/x11/XGServerEvent.m (process_key_event): Modifier detection:
|
||||
|
|
10
Tools/gpbs.m
10
Tools/gpbs.m
|
@ -1358,6 +1358,16 @@ main(int argc, char** argv, char **env)
|
|||
{
|
||||
NSLog(@"GNU pasteboard server startup.\n");
|
||||
}
|
||||
|
||||
if ([[NSUserDefaults standardUserDefaults]
|
||||
stringForKey: @"GSStartupNotification"])
|
||||
{
|
||||
[[NSDistributedNotificationCenter defaultCenter]
|
||||
postNotificationName: [[NSUserDefaults standardUserDefaults]
|
||||
stringForKey: @"GSStartupNotification"]
|
||||
object: nil];
|
||||
}
|
||||
|
||||
[[NSRunLoop currentRunLoop] run];
|
||||
RELEASE(server);
|
||||
RELEASE(pool);
|
||||
|
|
Loading…
Reference in a new issue