From d925df3929ac305c1bb104ebc4a7573a88809c34 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Sat, 26 Jul 2025 10:11:50 +0200 Subject: [PATCH] tdf#130857 weld: Drop unused weld::MenuToggleButton MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was introduced specifically for the Start Center in commit fb3c3b2861b6e658c260a22cc58c3f69be327b18 Author: Caolán McNamara Date: Mon Oct 19 09:35:00 2020 +0100 add MenuToggleButton for split toggle/menu button which is uniquely used in the start center but is no longer used there since commit 164a1f4c3315fc44161128d3d9ca886f767f7d30 Author: Heiko Tietze Date: Fri Sep 9 16:07:28 2022 +0200 Resolves tdf#80934 - GUI means to filter thumbnails in start center For use within toolbars, there's GtkMenuToolButton [1] which seems to provide a similar logic (one button to toggle, and another small one with an arrow to open the menu) without having to implement so much custom logic for the GTK implementation. [1] https://docs.gtk.org/gtk3/class.MenuToolButton.html Change-Id: I356c50f95da300a82965710010b41dea7dba6325 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188393 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- include/vcl/weld.hxx | 7 - solenv/sanitizers/ui/vcl.suppr | 4 - static/CustomTarget_emscripten_fs_image.mk | 2 - vcl/UIConfig_vcl.mk | 2 - vcl/inc/qt5/QtInstanceBuilder.hxx | 2 - vcl/inc/salvtables.hxx | 3 - vcl/qt5/QtInstanceBuilder.cxx | 6 - vcl/source/app/salvtables.cxx | 37 --- vcl/uiconfig/ui/menutogglebutton3.ui | 40 --- vcl/uiconfig/ui/menutogglebutton4.ui | 37 --- vcl/unx/gtk3/gtkinst.cxx | 326 +-------------------- 11 files changed, 4 insertions(+), 462 deletions(-) delete mode 100644 vcl/uiconfig/ui/menutogglebutton3.ui delete mode 100644 vcl/uiconfig/ui/menutogglebutton4.ui diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index ae8decbde0a8..3fe5cb25e23d 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -1673,12 +1673,6 @@ public: virtual void set_popover(weld::Widget* pPopover) = 0; }; -// Similar to a MenuButton except it is split into two parts, a toggle -// button at the start and a menubutton at the end -class VCL_DLLPUBLIC MenuToggleButton : virtual public MenuButton -{ -}; - class VCL_DLLPUBLIC CheckButton : virtual public Toggleable { public: @@ -2819,7 +2813,6 @@ public: virtual std::unique_ptr weld_paned(const OUString& id) = 0; virtual std::unique_ptr