vcl/source/window/builder.cxx |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

New commits:
commit feccd4363b46d28b084d344815b335bcabfac6d6
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Aug 3 20:49:22 2019 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Aug 21 17:38:19 2019 +0200

    hook GtkAssistant buildable to RoadmapWizard
    
    Change-Id: I486ee35423be33f0f78780a43afa324aa66f5f26
    Reviewed-on: https://gerrit.libreoffice.org/76904
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 61be22e10d70..3b7db3eea3ab 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -38,6 +38,7 @@
 #include <vcl/menubtn.hxx>
 #include <vcl/mnemonic.hxx>
 #include <vcl/prgsbar.hxx>
+#include <vcl/roadmapwizard.hxx>
 #include <vcl/scrbar.hxx>
 #include <vcl/svapp.hxx>
 #include <vcl/svtabbx.hxx>
@@ -1640,7 +1641,7 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window 
*pParent, const OString &
                     pParent->GetType() == WindowType::VERTICALTABCONTROL))
     {
         bool bTopLevel(name == "GtkDialog" || name == "GtkMessageDialog" ||
-                       name == "GtkWindow" || name == "GtkPopover");
+                       name == "GtkWindow" || name == "GtkPopover" || name == 
"GtkAssistant");
         if (!bTopLevel)
         {
             if (pParent->GetType() == WindowType::TABCONTROL)
@@ -1686,12 +1687,17 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window 
*pParent, const OString &
     extractButtonImage(id, rMap, name == "GtkRadioButton");
 
     VclPtr<vcl::Window> xWindow;
-    if (name == "GtkDialog" || name == "GtkAboutDialog")
+    if (name == "GtkDialog" || name == "GtkAboutDialog" || name == 
"GtkAssistant")
     {
         WinBits nBits = WB_MOVEABLE|WB_3DLOOK|WB_CLOSEABLE;
         if (extractResizable(rMap))
             nBits |= WB_SIZEABLE;
-        if (name == "GtkAboutDialog")
+        if (name == "GtkAssistant")
+        {
+            //TODO when no bare OWizardMachine pass nBits down instead of 
using empty .ui
+            xWindow = VclPtr<vcl::RoadmapWizard>::Create(pParent);
+        }
+        else if (name == "GtkAboutDialog")
             xWindow = VclPtr<vcl::AboutDialog>::Create(pParent, nBits, 
!pParent ? Dialog::InitFlag::NoParent : Dialog::InitFlag::Default);
         else
             xWindow = VclPtr<Dialog>::Create(pParent, nBits, !pParent ? 
Dialog::InitFlag::NoParent : Dialog::InitFlag::Default);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to