diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-11-13 14:50:26 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:57 +0000 |
commit | ea6399b837f1cd4fb28be91b8e311e9378988fc5 (patch) | |
tree | ded5273991f72512d5283962311fb1ba02f5d4be /linguistic | |
parent | e5f67b2e943366042bed9995327840c5a71eae2a (diff) |
changed timers to idles
Change-Id: Ic0d7730f7880dfe2e83c84e773b8cc420249b269
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngsvcmgr.cxx | 6 | ||||
-rw-r--r-- | linguistic/source/lngsvcmgr.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 32a417ac8156..c36555b3fe5b 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -476,8 +476,8 @@ LngSvcMgr::LngSvcMgr() UpdateAll(); - aUpdateTimer.SetTimeout(500); - aUpdateTimer.SetTimeoutHdl(LINK(this, LngSvcMgr, updateAndBroadcast)); + aUpdateIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST); + aUpdateIdle.SetIdleHdl(LINK(this, LngSvcMgr, updateAndBroadcast)); // request to be notified if an extension has been added/removed uno::Reference<uno::XComponentContext> xContext(comphelper::getProcessComponentContext()); @@ -513,7 +513,7 @@ void LngSvcMgr::modified(const lang::EventObject&) clearSvcInfoArray(pAvailThesSvcs); //schedule in an update to execute in the main thread - aUpdateTimer.Start(); + aUpdateIdle.Start(); } //run update, and inform everyone that dictionaries (may) have changed, this diff --git a/linguistic/source/lngsvcmgr.hxx b/linguistic/source/lngsvcmgr.hxx index 1b0d66443fd4..c3046e85df6e 100644 --- a/linguistic/source/lngsvcmgr.hxx +++ b/linguistic/source/lngsvcmgr.hxx @@ -81,7 +81,7 @@ class LngSvcMgr : com::sun::star::uno::Reference< ::com::sun::star::util::XModifyBroadcaster> xMB; - Timer aUpdateTimer; + Idle aUpdateIdle; com::sun::star::uno::Sequence< |