From 6ceeffbc73acce50e5060adcc3a111471f369064 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Fri, 6 Feb 2026 17:30:51 +0100 Subject: [PATCH] tdf#130857 sfx2: Use GtkDialog instead of GtkWindow for temp parent The top-level GtkWindow defined in tabbarcontents.ui is only a temporary one only used while loading the file, but which never gets shown. The sfx2::sidebar::TabBar ctor (in sfx2/source/sidebar/TabBar.cxx) moves the tab bar contents (widget with ID "TabBarContents") to another container anyway and the window it was in previously otherwise gets ignored. So far, QtBuilder doesn't support "GtkWindow", and since this one isn't of any relevance either, it also doesn't seem worth adding support for it for this one. Replace it with a GtkDialog instead. Whatever the temporary toplevel is doesn't really matter, but at least with the gtk3 VCL plugin, removing the GtkWindow parent altogether would result in (soffice:2053938): Gtk-CRITICAL **: 15:30:52.342: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed warnings, so keep a dummy toplevel in place. (The warning is probably related to the fact that an accelerator is defined for the "locktaskpanel" GtkMenuItem.) (`git show --ignore-space-change` helps to see the "actual" change more easily.) Change-Id: I59a9ccd6575ed8ac564ca5b7713e4f9865028875 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198850 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- sfx2/uiconfig/ui/tabbarcontents.ui | 105 ++++++++++++++++++----------- 1 file changed, 65 insertions(+), 40 deletions(-) diff --git a/sfx2/uiconfig/ui/tabbarcontents.ui b/sfx2/uiconfig/ui/tabbarcontents.ui index 1fb4eaba1cc5..99f7185f2dd1 100644 --- a/sfx2/uiconfig/ui/tabbarcontents.ui +++ b/sfx2/uiconfig/ui/tabbarcontents.ui @@ -58,69 +58,94 @@ - + False - - - True + dialog + + False - vertical + + + False + end + + + + + + False + False + 0 + + - + True False vertical - + True False - 2 vertical - + True - True - True - Sidebar Settings - center - center - 3 - image6 - none - True - mainmenu - False - - - False - True - 0 - - - - - True - True - center + False + 2 vertical - icons - False - + True - True - sfx2/res/symphony/sidebar-property-large.png + True + True + Sidebar Settings + center + center + 3 + image6 + none + True + mainmenu + False False - True + True + 0 + + + + + True + True + center + vertical + icons + False + + + True + True + sfx2/res/symphony/sidebar-property-large.png + + + False + True + + + + + False + True + 1 False True - 1 + 0 @@ -134,7 +159,7 @@ False True - 0 + 1