[Libreoffice-commits] .: Branch 'feature/cmclayout' - vcl/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Apr 5 13:28:14 PDT 2012


 vcl/source/uipreviewer/previewer.cxx |    1 +
 vcl/source/window/builder.cxx        |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 17e5b220876ea056fd12d80840cbaa220d163483
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Apr 5 21:28:08 2012 +0100

    make dialogs closeable in previewer

diff --git a/vcl/source/uipreviewer/previewer.cxx b/vcl/source/uipreviewer/previewer.cxx
index 23aee4a..c1f787b 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 413e861..98581bc 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")))
     {


More information about the Libreoffice-commits mailing list