summaryrefslogtreecommitdiff
path: root/vcl/source/window/menubarwindow.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-25 13:42:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-02-26 21:38:25 +0000
commit3ae6c7fcbe14f7a425fa1db2cb388b12848be65b (patch)
tree38928b81d974eff095a2235f1c30c05e40790d60 /vcl/source/window/menubarwindow.cxx
parent800704e0c46f6f86f6a18a477ba4b6f313c5693a (diff)
gtk3: add a menubar close button
the css foo is modeled on the similiar gedit close buttons in its tabs Change-Id: I7af32ad0434a49c52eea215f797c502be7f96dac
Diffstat (limited to 'vcl/source/window/menubarwindow.cxx')
-rw-r--r--vcl/source/window/menubarwindow.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx
index 89545139b8fd..99daa750b94f 100644
--- a/vcl/source/window/menubarwindow.cxx
+++ b/vcl/source/window/menubarwindow.cxx
@@ -213,6 +213,8 @@ void MenuBarWindow::ShowButtons( bool bClose, bool bFloat, bool bHide )
{
aCloseBtn->ShowItem(IID_DOCUMENTCLOSE, bClose);
aCloseBtn->Show(bClose || !m_aAddButtons.empty());
+ if (pMenu->mpSalMenu)
+ pMenu->mpSalMenu->ShowCloseButton(bClose);
aFloatBtn->Show( bFloat );
aHideBtn->Show( bHide );
Resize();