Kaydet (Commit) 51b02592 authored tarafından Tobias Madl's avatar Tobias Madl

changed inherited timers to idle

Change-Id: I1d70d4d2fe8573d0f120f2a1ece83f504d5efde5
üst 9c9700ea
...@@ -802,7 +802,7 @@ void IdleFormattter::ForceTimeout() ...@@ -802,7 +802,7 @@ void IdleFormattter::ForceTimeout()
if ( IsActive() ) if ( IsActive() )
{ {
Stop(); Stop();
((Link&)GetTimeoutHdl()).Call( this ); ((Link&)GetIdleHdl()).Call( this );
} }
} }
......
...@@ -69,7 +69,7 @@ static NSMenu* pDockMenu = nil; ...@@ -69,7 +69,7 @@ static NSMenu* pDockMenu = nil;
static bool bNoSVMain = true; static bool bNoSVMain = true;
static bool bLeftMain = false; static bool bLeftMain = false;
class AquaDelayedSettingsChanged : public Timer class AquaDelayedSettingsChanged : public Idle
{ {
bool mbInvalidate; bool mbInvalidate;
public: public:
...@@ -101,9 +101,9 @@ class AquaDelayedSettingsChanged : public Timer ...@@ -101,9 +101,9 @@ class AquaDelayedSettingsChanged : public Timer
void AquaSalInstance::delayedSettingsChanged( bool bInvalidate ) void AquaSalInstance::delayedSettingsChanged( bool bInvalidate )
{ {
osl::Guard< comphelper::SolarMutex > aGuard( *mpSalYieldMutex ); osl::Guard< comphelper::SolarMutex > aGuard( *mpSalYieldMutex );
AquaDelayedSettingsChanged* pTimer = new AquaDelayedSettingsChanged( bInvalidate ); AquaDelayedSettingsChanged* pIdle = new AquaDelayedSettingsChanged( bInvalidate );
pTimer->SetTimeout( 50 ); pIdle->SetPriority( VCL_IDLE_PRIORITY_MEDIUM );
pTimer->Start(); pIdle->Start();
} }
// the AppEventList must be available before any SalData/SalInst/etc. objects are ready // the AppEventList must be available before any SalData/SalInst/etc. objects are ready
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment