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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed May 26 16:40:38 UTC 2021


 vcl/unx/gtk3/gtkinst.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit f3f6b68629656d488550fb82898e40fcad61c271
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed May 26 16:12:59 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed May 26 18:39:49 2021 +0200

    gtk4: restore Container
    
    Change-Id: Ide82777fadbee2c644c3a19d418c3683f6ff2c11
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116201
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index d4e9465b8248..948e22c044dd 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -19422,14 +19422,13 @@ public:
     {
 #if !GTK_CHECK_VERSION(4, 0, 0)
         GtkContainer* pContainer = GTK_CONTAINER(gtk_builder_get_object(m_pBuilder, id.getStr()));
+#else
+        GtkWidget* pContainer = GTK_WIDGET(gtk_builder_get_object(m_pBuilder, id.getStr()));
+#endif
         if (!pContainer)
             return nullptr;
         auto_add_parentless_widgets_to_container(GTK_WIDGET(pContainer));
         return std::make_unique<GtkInstanceContainer>(pContainer, this, false);
-#else
-        (void)id;
-        return nullptr;
-#endif
     }
 
     virtual std::unique_ptr<weld::Box> weld_box(const OString &id) override


More information about the Libreoffice-commits mailing list