[Libreoffice-commits] core.git: svx/source

Tobias Madl tobias.madl.dev at gmail.com
Tue Mar 10 07:08:15 PDT 2015


 svx/source/dialog/srchdlg.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 5b517719e894a179ee5df64fe5e56e26398e8512
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date:   Tue Mar 10 14:05:49 2015 +0000

    Idle/Timer: reverted idle to timer
    
    This task waits for user io.
    
    Change-Id: Id5b3725b316f1bbd73e94d5368bc0d5c7d057189

diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index 2b03bbc..8e4d3c6 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -22,7 +22,7 @@
 #include <vcl/wrkwin.hxx>
 #include <vcl/morebtn.hxx>
 #include <vcl/msgbox.hxx>
-#include <vcl/idle.hxx>
+#include <vcl/timer.hxx>
 #include <svl/slstitm.hxx>
 #include <svl/itemiter.hxx>
 #include <svl/style.hxx>
@@ -111,7 +111,7 @@ struct SearchDlg_Impl
     bool        bSaveToModule  : 1,
                 bFocusOnSearch : 1;
     sal_uInt16* pRanges;
-    Idle        aSelectionIdle;
+    Timer       aSelectionTimer;
 
     uno::Reference< frame::XDispatch > xCommand1Dispatch;
     uno::Reference< frame::XDispatch > xCommand2Dispatch;
@@ -365,8 +365,8 @@ void SvxSearchDialog::Construct_Impl()
 {
     // temporary to avoid incompatibility
     pImpl = new SearchDlg_Impl();
-    pImpl->aSelectionIdle.SetPriority( SchedulerPriority::LOWEST );
-    pImpl->aSelectionIdle.SetIdleHdl(
+    pImpl->aSelectionTimer.SetTimeout( 500 );
+    pImpl->aSelectionTimer.SetTimeoutHdl(
         LINK( this, SvxSearchDialog, TimeoutHdl_Impl ) );
     EnableControls_Impl( 0 );
 
@@ -409,7 +409,7 @@ void SvxSearchDialog::Construct_Impl()
         new SvxSearchController( SID_SEARCH_OPTIONS, rBindings, *this );
     rBindings.LeaveRegistrations();
     rBindings.GetDispatcher()->Execute( FID_SEARCH_ON, SfxCallMode::SLOT, ppArgs );
-    pImpl->aSelectionIdle.Start();
+    pImpl->aSelectionTimer.Start();
 
 
     SvtCJKOptions aCJKOptions;


More information about the Libreoffice-commits mailing list