diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-05 21:28:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:14 +0100 |
commit | f244fea0d6a9ebf11dede05477cc4540ccd472da (patch) | |
tree | f1d8d5b30606b20b17fb587f3494e7647b112529 /vcl/source | |
parent | 851a41ff88707f72e818233afd1c6cb2cf73f481 (diff) |
make dialogs closeable in previewer
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/uipreviewer/previewer.cxx | 1 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 2 |
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"))) { |