Kaydet (Commit) 775b1286 authored tarafından Caolán McNamara's avatar Caolán McNamara

related: tdf#116264 give windows message dialogs less border width

Change-Id: Ieced9b02515ffc7479bfc66ca501e20962d5572e
Reviewed-on: https://gerrit.libreoffice.org/51172Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst c35eee10
...@@ -1321,7 +1321,11 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString & ...@@ -1321,7 +1321,11 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString &
VclPtr<MessageDialog> xDialog(VclPtr<MessageDialog>::Create(pParent, nBits)); VclPtr<MessageDialog> xDialog(VclPtr<MessageDialog>::Create(pParent, nBits));
m_pParserState->m_aMessageDialogs.push_back(xDialog); m_pParserState->m_aMessageDialogs.push_back(xDialog);
xWindow = xDialog; xWindow = xDialog;
#if defined WNT
xWindow->set_border_width(3);
#else
xWindow->set_border_width(12); xWindow->set_border_width(12);
#endif
} }
else if (name == "GtkBox") else if (name == "GtkBox")
{ {
......
...@@ -2276,7 +2276,11 @@ void MessageDialog::create_message_area() ...@@ -2276,7 +2276,11 @@ void MessageDialog::create_message_area()
void MessageDialog::create_owned_areas() void MessageDialog::create_owned_areas()
{ {
#if defined WNT
set_border_width(3);
#else
set_border_width(12); set_border_width(12);
#endif
m_pOwnedContentArea.set(VclPtr<VclVBox>::Create(this, false, 24)); m_pOwnedContentArea.set(VclPtr<VclVBox>::Create(this, false, 24));
set_content_area(m_pOwnedContentArea); set_content_area(m_pOwnedContentArea);
m_pOwnedContentArea->Show(); m_pOwnedContentArea->Show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment