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

Caolán McNamara caolanm at redhat.com
Tue Jun 7 12:38:54 UTC 2016


 framework/source/uielement/menubarmanager.cxx |    2 --
 vcl/unx/gtk/gtksalmenu.cxx                    |    1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 10ee6a954671407d25d35d01c62657a367278e69
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jun 7 13:31:12 2016 +0100

    gtk3: move the updating of native menu to right after its activated
    
    try fix that view->toolbars isn't in sync
    
    Change-Id: I095be3003f076193878f2c3ce2a2be5acbe0e33f
    (cherry picked from commit 15436c009e756dd4c94046f9849ad5a186454af8)

diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx
index 2317852..6d47924 100644
--- a/framework/source/uielement/menubarmanager.cxx
+++ b/framework/source/uielement/menubarmanager.cxx
@@ -480,8 +480,6 @@ throw ( RuntimeException, std::exception )
                 pMenuItemHandler->xMenuItemDispatch.clear();
             }
         }
-        if ( m_bHasMenuBar && !m_bActive )
-            m_pVCLMenu->UpdateNativeMenu();
     }
 }
 
diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx
index 24ab303..40b6052 100644
--- a/vcl/unx/gtk/gtksalmenu.cxx
+++ b/vcl/unx/gtk/gtksalmenu.cxx
@@ -1025,6 +1025,7 @@ void GtkSalMenu::Activate(const gchar* pCommand)
     Menu* pVclMenu = pSalMenu->GetMenu();
     Menu* pVclSubMenu = pVclMenu->GetPopupMenu(aMenuAndId.second);
     pTopLevel->GetMenu()->HandleMenuActivateEvent(pVclSubMenu);
+    pVclSubMenu->UpdateNativeMenu();
 }
 
 void GtkSalMenu::Deactivate(const gchar* pCommand)


More information about the Libreoffice-commits mailing list