From fd92b09db497a7dfd594a5418f87856dc3886bf9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 14 Feb 2023 13:12:38 +0000 Subject: tdf#153541 notify listeners when any of the icon sizes change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit not just the "normal" toolbar, but also the "notebookbar" and "sidebar" ones. Existing listeners have assume that this is the case, so match their expectations to get the notebookbar to track the config when it changes. Change-Id: Ia6024217ad97374f753e1db6305eda011e42b85d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147010 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- svtools/source/config/miscopt.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'svtools') diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx index 2462a5804659..1ea1e3b7e695 100644 --- a/svtools/source/config/miscopt.cxx +++ b/svtools/source/config/miscopt.cxx @@ -47,6 +47,8 @@ constexpr OUStringLiteral PROPERTYNAME_SYMBOLSET = u"SymbolSet"; #define PROPERTYHANDLE_SYMBOLSET 0 constexpr OUStringLiteral PROPERTYNAME_ICONTHEME = u"SymbolStyle"; #define PROPERTYHANDLE_SYMBOLSTYLE 1 +constexpr OUStringLiteral PROPERTYNAME_SIDEBARICONSIZE = u"SidebarIconSize"; +constexpr OUStringLiteral PROPERTYNAME_NOTEBOOKBARICONSIZE = u"NotebookbarIconSize"; static std::mutex & GetInitMutex() { @@ -359,6 +361,11 @@ Sequence< OUString > SvtMiscOptions_Impl::GetPropertyNames() { PROPERTYNAME_SYMBOLSET, PROPERTYNAME_ICONTHEME, + // SidebarIconSize and NotebookbarIconSize so + // notifications for their changes are also broadcast + // from SvtMiscOptions + PROPERTYNAME_SIDEBARICONSIZE, + PROPERTYNAME_NOTEBOOKBARICONSIZE }; } -- cgit