[Libreoffice-commits] core.git: vcl/source

Caolán McNamara caolanm at redhat.com
Thu May 10 09:05:45 UTC 2018


 vcl/source/window/layout.cxx |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

New commits:
commit 6ede622ab6d2393c3ec90fcaa6e2487232b8c1a8
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue May 8 16:06:02 2018 +0100

    Related: tdf#117499 set default titles for non-gtk3 message dialogs
    
    Change-Id: Ie2de7fe79e5861351c3fd6512bb970def9a31e4e
    Reviewed-on: https://gerrit.libreoffice.org/53991
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 3e6cc477e3a5..432796da766d 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -2344,6 +2344,23 @@ MessageDialog::MessageDialog(vcl::Window* pParent,
     SetType(WindowType::MESSBOX);
     create_owned_areas();
     create_message_area();
+
+    switch (m_eMessageType)
+    {
+        case VclMessageType::Info:
+            SetText(GetStandardInfoBoxText());
+            break;
+        case VclMessageType::Warning:
+            SetText(GetStandardWarningBoxText());
+            break;
+        case VclMessageType::Question:
+            SetText(GetStandardQueryBoxText());
+            m_pImage->SetImage(GetStandardQueryBoxImage());
+            break;
+        case VclMessageType::Error:
+            SetText(GetStandardErrorBoxText());
+            break;
+    }
 }
 
 void MessageDialog::dispose()


More information about the Libreoffice-commits mailing list