diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-06-07 13:31:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-07 13:31:16 +0100 |
commit | 15436c009e756dd4c94046f9849ad5a186454af8 (patch) | |
tree | ba7caa491e32aa68fa178de2797e0fb25a4e2802 | |
parent | c450705d51a4fe67d1e9391b2f78235b79766cfe (diff) |
gtk3: move the updating of native menu to right after its activated
try fix that view->toolbars isn't in sync
Change-Id: I095be3003f076193878f2c3ce2a2be5acbe0e33f
-rw-r--r-- | framework/source/uielement/menubarmanager.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/gtksalmenu.cxx | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index a056be04f5ce..3007e8a44102 100644 --- a/framework/source/uielement/menubarmanager.cxx +++ b/framework/source/uielement/menubarmanager.cxx @@ -479,8 +479,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 a13bb6d26242..19fd6a085246 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) |