diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-01-14 13:11:28 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-03-06 12:27:06 +0000 |
commit | 256c5c3f28ef70b70d38e2e07dfca4baab654612 (patch) | |
tree | aca2c7b00f0fe50f3a014ad4502e0ae8b7833f86 | |
parent | 57656eb1fae5ae6c4d3b7542a385a93ff434e4e7 (diff) |
Idle and Timer are now completely independent
And everything is functionating pretty well.
Change-Id: Id7f5a995362f6f7c5235f2e9facb7c7f119f3140
-rw-r--r-- | sfx2/source/appl/appcfg.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/appl/appinit.cxx | 2 | ||||
-rw-r--r-- | vcl/source/app/svmain.cxx | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index 59ab0f950acb..7cae170a02af 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -91,7 +91,7 @@ public: virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE; SfxEventAsyncer_Impl( const SfxEventHint& rHint ); virtual ~SfxEventAsyncer_Impl(); - DECL_LINK( TimerHdl, Timer*); + DECL_LINK( IdleHdl, Idle*); }; @@ -114,7 +114,7 @@ SfxEventAsyncer_Impl::SfxEventAsyncer_Impl( const SfxEventHint& rHint ) if( rHint.GetObjShell() ) StartListening( *rHint.GetObjShell() ); pIdle = new Idle; - pIdle->SetIdleHdl( LINK(this, SfxEventAsyncer_Impl, TimerHdl) ); + pIdle->SetIdleHdl( LINK(this, SfxEventAsyncer_Impl, IdleHdl) ); pIdle->SetPriority( IdlePriority::VCL_IDLE_PRIORITY_HIGHEST ); pIdle->Start(); } @@ -128,10 +128,10 @@ SfxEventAsyncer_Impl::~SfxEventAsyncer_Impl() -IMPL_LINK(SfxEventAsyncer_Impl, TimerHdl, Timer*, pAsyncTimer) +IMPL_LINK(SfxEventAsyncer_Impl, IdleHdl, Idle*, pAsyncIdle) { SfxObjectShellRef xRef( aHint.GetObjShell() ); - pAsyncTimer->Stop(); + pAsyncIdle->Stop(); #ifdef DBG_UTIL if (!xRef.Is()) { diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx index 9580a6433044..edc31e094955 100644 --- a/sfx2/source/appl/appinit.cxx +++ b/sfx2/source/appl/appinit.cxx @@ -47,6 +47,7 @@ #include <vcl/edit.hxx> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <sfx2/unoctitm.hxx> #include "app.hrc" @@ -110,6 +111,7 @@ void SAL_CALL SfxTerminateListener_Impl::notifyTermination( const EventObject& a // Timers may access the SfxApplication and are only deleted in // Application::Quit(), which is asynchronous (PostUserEvent) - disable! Timer::ImplDeInitTimer(); + Idle::ImplDeInitIdle(); SfxApplication* pApp = SfxGetpApp(); pApp->Broadcast( SfxSimpleHint( SFX_HINT_DEINITIALIZING ) ); diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx index 49703e49b1bb..6ca6919ac69f 100644 --- a/vcl/source/app/svmain.cxx +++ b/vcl/source/app/svmain.cxx @@ -33,6 +33,7 @@ #include "vcl/svapp.hxx" #include "vcl/wrkwin.hxx" #include "vcl/cvtgrf.hxx" +#include "vcl/idle.hxx" #include "vcl/image.hxx" #include "vcl/settings.hxx" #include "vcl/unowrap.hxx" @@ -387,6 +388,7 @@ void DeInitVCL() if ( pSVData->maAppData.mpIdleMgr ) delete pSVData->maAppData.mpIdleMgr; Timer::ImplDeInitTimer(); + Idle::ImplDeInitIdle; if ( pSVData->maWinData.mpMsgBoxImgList ) { |