[Libreoffice-commits] core.git: Branch 'feature/priorities' - 2 commits - sc/source svx/source

Tobias Madl tobias.madl.dev at gmail.com
Mon Nov 24 02:36:21 PST 2014


 sc/source/ui/dbgui/dbnamdlg.cxx |   12 ------------
 sc/source/ui/inc/dbnamdlg.hxx   |    1 -
 svx/source/svdraw/svdpntv.cxx   |    2 +-
 3 files changed, 1 insertion(+), 14 deletions(-)

New commits:
commit 25d020a3aa2c0e99898fec93cf3931ec09c13ce0
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date:   Mon Nov 24 10:34:56 2014 +0000

    adapted priority to repaint
    
    Change-Id: I6a780e93bcd0621d75222e182eb100694e02448d

diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 07794bc..4580d6c 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -190,7 +190,7 @@ void SdrPaintView::ImpClearVars()
     pDefaultStyleSheet=NULL;
     bSomeObjChgdFlag=false;
     nGraphicManagerDrawMode = GRFMGR_DRAW_STANDARD;
-    aComeBackIdle.SetPriority(VCL_IDLE_PRIORITY_HIGH);
+    aComeBackIdle.SetPriority(VCL_IDLE_PRIORITY_REPAINT);
     aComeBackIdle.SetIdleHdl(LINK(this,SdrPaintView,ImpComeBackHdl));
 
     if (pMod)
commit 389feb66caa26711604f51c0699f2383468caded
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date:   Sun Nov 23 10:48:12 2014 +0000

    timers: callback useless, remove timer completely.
    
    Change-Id: I904a91b38d846841e24149f897962abb429878be

diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx
index c46be30..b6910bb 100644
--- a/sc/source/ui/dbgui/dbnamdlg.cxx
+++ b/sc/source/ui/dbgui/dbnamdlg.cxx
@@ -154,10 +154,6 @@ ScDbNameDlg::ScDbNameDlg(SfxBindings* pB, SfxChildWindow* pCW, vcl::Window* pPar
     pSaveObj = new DBSaveData( *m_pEdAssign, *m_pBtnHeader,
                         *m_pBtnDoSize, *m_pBtnKeepFmt, *m_pBtnStripData, theCurArea );
     Init();
-
-    SynFocusTimer.SetTimeout(150);
-    SynFocusTimer.SetTimeoutHdl(LINK( this, ScDbNameDlg, FocusToComoboxHdl));
-    SynFocusTimer.Start();
 }
 
 ScDbNameDlg::~ScDbNameDlg()
@@ -635,12 +631,4 @@ IMPL_LINK_NOARG(ScDbNameDlg, AssModifyHdl)
     return 0;
 }
 
-IMPL_LINK( ScDbNameDlg, FocusToComoboxHdl, Timer*, pTi)
-{
-    (void)pTi;
-    // CallEventListeners is still protected - figure out if we need to make it public, or if the focus stuff can be handled better in VCL directly. First see what AT is expecting...
-    // aEdName.CallEventListeners( VCLEVENT_CONTROL_GETFOCUS );
-    return 0;
-}
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/inc/dbnamdlg.hxx b/sc/source/ui/inc/dbnamdlg.hxx
index ae2fdda..6b6d683 100644
--- a/sc/source/ui/inc/dbnamdlg.hxx
+++ b/sc/source/ui/inc/dbnamdlg.hxx
@@ -82,7 +82,6 @@ private:
     ScDBCollection  aLocalDbCol;
     ScRange         theCurArea;
     std::vector<ScRange> aRemoveList;
-    Timer       SynFocusTimer;
     DECL_LINK( FocusToComoboxHdl, Timer* );
 
 private:


More information about the Libreoffice-commits mailing list