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

Maxim Monastirsky momonasmon at gmail.com
Wed Apr 27 19:21:37 UTC 2016


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

New commits:
commit e4ae5e2d4049765f65f8b5560216f3ffded19903
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

diff --git a/framework/source/uielement/subtoolbarcontroller.cxx b/framework/source/uielement/subtoolbarcontroller.cxx
index b3585df..3681678 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