[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 1 15:07:29 UTC 2021
vcl/unx/gtk3/gtkinst.cxx | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
New commits:
commit 7cdf74b305be14825c615b2abe6ab8d79fe858ff
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jun 1 13:20:43 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jun 1 17:06:47 2021 +0200
gtk4: don't abuse gtk_widget_unparent to remove from container
as seen by assert on closing address template dialog
Change-Id: I6d05d2d162e8e53f740ea7dc4f16879da35293ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116538
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 71c340b0c0de..f1d81f7d27a1 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -7307,13 +7307,13 @@ public:
#endif
g_object_ref(pChild);
#if GTK_CHECK_VERSION(4, 0, 0)
- gtk_widget_unparent(pChild);
+ gtk_viewport_set_child(GTK_VIEWPORT(pViewport), nullptr);
#else
gtk_container_remove(GTK_CONTAINER(pViewport), pChild);
#endif
g_object_ref(pViewport);
#if GTK_CHECK_VERSION(4, 0, 0)
- gtk_widget_unparent(pViewport);
+ gtk_scrolled_window_set_child(m_pScrolledWindow, nullptr);
#else
gtk_container_remove(GTK_CONTAINER(m_pScrolledWindow), pViewport);
#endif
@@ -7603,13 +7603,13 @@ public:
#endif
g_object_ref(pChild);
#if GTK_CHECK_VERSION(4, 0, 0)
- gtk_widget_unparent(pChild);
+ gtk_viewport_set_child(GTK_VIEWPORT(pViewport), nullptr);
#else
gtk_container_remove(GTK_CONTAINER(pViewport), pChild);
#endif
g_object_ref(pViewport);
#if GTK_CHECK_VERSION(4, 0, 0)
- gtk_widget_unparent(pViewport);
+ gtk_scrolled_window_set_child(m_pScrolledWindow, nullptr);
#else
gtk_container_remove(GTK_CONTAINER(m_pScrolledWindow), pViewport);
#endif
@@ -22406,6 +22406,7 @@ weld::Builder* GtkInstance::CreateBuilder(weld::Widget* pParent, const OUString&
rUIFile != "cui/ui/objecttitledescdialog.ui" &&
rUIFile != "cui/ui/pastespecial.ui" &&
rUIFile != "cui/ui/percentdialog.ui" &&
+ rUIFile != "cui/ui/scriptorganizer.ui" &&
rUIFile != "cui/ui/signatureline.ui" &&
rUIFile != "cui/ui/tipofthedaydialog.ui" &&
rUIFile != "filter/ui/testxmlfilter.ui" &&
@@ -22424,14 +22425,16 @@ weld::Builder* GtkInstance::CreateBuilder(weld::Widget* pParent, const OUString&
rUIFile != "sfx/ui/loadtemplatedialog.ui" &&
rUIFile != "sfx/ui/password.ui" &&
rUIFile != "sfx/ui/securityinfopage.ui" &&
+ rUIFile != "svt/ui/addresstemplatedialog.ui" &&
rUIFile != "svt/ui/datewindow.ui" &&
rUIFile != "svt/ui/javadisableddialog.ui" &&
rUIFile != "svx/ui/fontworkgallerydialog.ui" &&
- rUIFile != "modules/BasicIDE/ui/organizedialog.ui" &&
+ rUIFile != "modules/BasicIDE/ui/basicmacrodialog.ui" &&
rUIFile != "modules/BasicIDE/ui/dialogpage.ui" &&
rUIFile != "modules/BasicIDE/ui/libpage.ui" &&
rUIFile != "modules/BasicIDE/ui/modulepage.ui" &&
rUIFile != "modules/BasicIDE/ui/newlibdialog.ui" &&
+ rUIFile != "modules/BasicIDE/ui/organizedialog.ui" &&
rUIFile != "modules/scalc/ui/colwidthdialog.ui" &&
rUIFile != "modules/scalc/ui/consolidatedialog.ui" &&
rUIFile != "modules/scalc/ui/dataform.ui" &&
More information about the Libreoffice-commits
mailing list