summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-04-05 21:28:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:14 +0100
commitf244fea0d6a9ebf11dede05477cc4540ccd472da (patch)
treef1d8d5b30606b20b17fb587f3494e7647b112529 /vcl/source
parent851a41ff88707f72e818233afd1c6cb2cf73f481 (diff)
make dialogs closeable in previewer
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/uipreviewer/previewer.cxx1
-rw-r--r--vcl/source/window/builder.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/uipreviewer/previewer.cxx b/vcl/source/uipreviewer/previewer.cxx
index 23aee4a8bc56..c1f787b33030 100644
--- a/vcl/source/uipreviewer/previewer.cxx
+++ b/vcl/source/uipreviewer/previewer.cxx
@@ -84,6 +84,7 @@ int UIPreviewApp::Main()
if (pDialog)
{
pDialog->SetText(rtl::OUString("LibreOffice ui-previewer"));
+ pDialog->SetStyle(pDialog->GetStyle()|WB_CLOSEABLE);
pDialog->Execute();
}
else
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 413e86129e0a..98581bc0d753 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -67,7 +67,7 @@ Window *VclBuilder::makeObject(Window *pParent, const rtl::OString &name, bool b
Window *pWindow = NULL;
if (name.equalsL(RTL_CONSTASCII_STRINGPARAM("GtkDialog")))
{
- pWindow = new Dialog(pParent, WB_SIZEMOVE|WB_3DLOOK);
+ pWindow = new Dialog(pParent, WB_SIZEMOVE|WB_3DLOOK|WB_CLOSEABLE);
}
else if (name.equalsL(RTL_CONSTASCII_STRINGPARAM("GtkBox")))
{