[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - framework/source

Maxim Monastirsky momonasmon at gmail.com
Tue May 10 08:47:41 UTC 2016


 framework/source/uielement/subtoolbarcontroller.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 7327ea0bd7a2c3876626e6b9671cbf5aa3a1ec68
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Mon Apr 25 10:30:16 2016 +0300

    SubToolBarController: Use initialize to change tb bits
    
    update is called so late that the dropdown addition is
    noticeable by the user.
    
    Change-Id: I36d76770125f927a851caef010e81f12f40d4405
    (cherry picked from commit e4ae5e2d4049765f65f8b5560216f3ffded19903)
    Reviewed-on: https://gerrit.libreoffice.org/24797
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/framework/source/uielement/subtoolbarcontroller.cxx b/framework/source/uielement/subtoolbarcontroller.cxx
index c548afa..4ef0229 100644
--- a/framework/source/uielement/subtoolbarcontroller.cxx
+++ b/framework/source/uielement/subtoolbarcontroller.cxx
@@ -50,6 +50,9 @@ public:
     explicit SubToolBarController( const css::uno::Sequence< css::uno::Any >& rxArgs );
     virtual ~SubToolBarController();
 
+    // XInitialization
+    virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& rxArgs ) throw ( css::uno::Exception, css::uno::RuntimeException, std::exception ) override;
+
     // XStatusListener
     virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) throw ( css::uno::RuntimeException, std::exception ) override;
 
@@ -75,9 +78,6 @@ public:
     // XEventListener
     virtual void SAL_CALL disposing( const css::lang::EventObject& e ) throw ( css::uno::RuntimeException, std::exception ) override;
 
-    // XUpdatable
-    virtual void SAL_CALL update() throw ( css::uno::RuntimeException, std::exception ) override;
-
     // XComponent
     virtual void SAL_CALL dispose() throw ( css::uno::RuntimeException, std::exception ) override;
 
@@ -407,10 +407,10 @@ void SubToolBarController::disposing( const css::lang::EventObject& e )
     svt::ToolboxController::disposing( e );
 }
 
-void SubToolBarController::update()
-    throw ( css::uno::RuntimeException, std::exception )
+void SubToolBarController::initialize( const css::uno::Sequence< css::uno::Any >& rxArgs )
+    throw ( css::uno::Exception, css::uno::RuntimeException, std::exception )
 {
-    svt::ToolboxController::update();
+    svt::ToolboxController::initialize( rxArgs );
 
     ToolBox* pToolBox = nullptr;
     sal_uInt16 nId = 0;


More information about the Libreoffice-commits mailing list