summaryrefslogtreecommitdiffstats
path: root/forms/source/component/ListBox.cxx
diff options
context:
space:
mode:
authorTobias Madl <tobias.madl.dev@gmail.com>2014-11-13 14:50:26 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:34:57 +0000
commitea6399b837f1cd4fb28be91b8e311e9378988fc5 (patch)
treeded5273991f72512d5283962311fb1ba02f5d4be /forms/source/component/ListBox.cxx
parentchanged timers to idle (diff)
downloadcore-ea6399b837f1cd4fb28be91b8e311e9378988fc5.tar.gz
core-ea6399b837f1cd4fb28be91b8e311e9378988fc5.zip
changed timers to idles
Change-Id: Ic0d7730f7880dfe2e83c84e773b8cc420249b269
Diffstat (limited to 'forms/source/component/ListBox.cxx')
-rw-r--r--forms/source/component/ListBox.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 11de5a7dcdf6..3235ffe814ce 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1789,8 +1789,8 @@ namespace frm
doSetDelegator();
- m_aChangeTimer.SetTimeout(500);
- m_aChangeTimer.SetTimeoutHdl(LINK(this,OListBoxControl,OnTimeout));
+ m_aChangeIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
+ m_aChangeIdle.SetIdleHdl(LINK(this,OListBoxControl,OnTimeout));
}
@@ -1866,13 +1866,13 @@ namespace frm
// and do the handling for the ChangeListeners
::osl::ClearableMutexGuard aGuard(m_aMutex);
- if ( m_aChangeTimer.IsActive() )
+ if ( m_aChangeIdle.IsActive() )
{
Reference<XPropertySet> xSet(getModel(), UNO_QUERY);
m_aCurrentSelection = xSet->getPropertyValue(PROPERTY_SELECT_SEQ);
- m_aChangeTimer.Stop();
- m_aChangeTimer.Start();
+ m_aChangeIdle.Stop();
+ m_aChangeIdle.Start();
}
else
{
@@ -1902,7 +1902,7 @@ namespace frm
if (bModified)
{
m_aCurrentSelection = aValue;
- m_aChangeTimer.Start();
+ m_aChangeIdle.Start();
}
}
}
@@ -1935,8 +1935,8 @@ namespace frm
void OListBoxControl::disposing()
{
- if (m_aChangeTimer.IsActive())
- m_aChangeTimer.Stop();
+ if (m_aChangeIdle.IsActive())
+ m_aChangeIdle.Stop();
EventObject aEvent( *this );
m_aChangeListeners.disposeAndClear( aEvent );