diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-01-22 11:21:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-01-22 18:23:52 +0100 |
commit | 46efac592b76d32152353466120eea2c9800858f (patch) | |
tree | a9dc9e7f7ec69be79ac595ed8cf20a9a594d18df /vcl/source/window/menubarwindow.cxx | |
parent | db4c828913cfc8c33b8cc87b576fddcc2e705176 (diff) |
Resolves: tdf#122241 support persona header in native gtk3 menubar
Change-Id: Ia4485ec4c342c86f40e8e0bb7e5e1af1a47bb9b9
Reviewed-on: https://gerrit.libreoffice.org/66725
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/window/menubarwindow.cxx')
-rw-r--r-- | vcl/source/window/menubarwindow.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx index f45cb3e64681..6607d44cc163 100644 --- a/vcl/source/window/menubarwindow.cxx +++ b/vcl/source/window/menubarwindow.cxx @@ -1076,6 +1076,9 @@ void MenuBarWindow::ApplySettings(vcl::RenderContext& rRenderContext) SetPointFont(rRenderContext, rStyleSettings.GetMenuFont()); const BitmapEx& rPersonaBitmap = Application::GetSettings().GetStyleSettings().GetPersonaHeader(); + SalMenu *pNativeMenu = pMenu ? pMenu->ImplGetSalMenu() : nullptr; + if (pNativeMenu) + pNativeMenu->ApplyPersona(); if (!rPersonaBitmap.IsEmpty()) { Wallpaper aWallpaper(rPersonaBitmap); |