summaryrefslogtreecommitdiff
path: root/vcl/source/app/svmainhook.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-08-03 13:06:28 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-08-03 13:06:28 +0000
commit363a9ee805ffd5c07d49158cb3e62069ffa2929d (patch)
treebbdc7e4f0ec3d3ee299f55133e4cd284f73953e1 /vcl/source/app/svmainhook.cxx
parent301fcd27e37d72b988b7e60675d82ece63ce5b4f (diff)
INTEGRATION: CWS aquavcl02 (1.4.262); FILE MERGED
2007/07/12 14:23:04 hdu 1.4.262.2: #i78358# handle aqua's AppleEvents immediately in the SVMainHook 2007/07/02 11:53:48 pl 1.4.262.1: join from aquavcl01
Diffstat (limited to 'vcl/source/app/svmainhook.cxx')
-rw-r--r--vcl/source/app/svmainhook.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/vcl/source/app/svmainhook.cxx b/vcl/source/app/svmainhook.cxx
index 89fef32cb0b9..bc487179a3cb 100644
--- a/vcl/source/app/svmainhook.cxx
+++ b/vcl/source/app/svmainhook.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svmainhook.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2007-07-05 08:37:51 $
+ * last change: $Author: hr $ $Date: 2007-08-03 14:06:28 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -72,6 +72,11 @@ BOOL ImplSVMainHook( BOOL * pbInit )
{
gpbInit = pbInit;
+ // install handlers of AppleEvents BEFORE handling event loops
+ // else we miss the for initial OpenDocument apple events
+ extern void InstallAEHandlers();
+ InstallAEHandlers();
+
EventLoopTimerRef aMainRunLoopTimerRef;
(void) InstallEventLoopTimer( GetCurrentEventLoop(), 0, 0, NewEventLoopTimerUPP( MainRunLoopForThreadedApps ), NULL, &aMainRunLoopTimerRef );