summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-02-14 13:12:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-02-14 15:51:49 +0000
commitfd92b09db497a7dfd594a5418f87856dc3886bf9 (patch)
treeeee1a6a0eca2808034518114a8e452165dd066f7
parent2b8170c885c14e46d6bc3e2a3686f80d52f021d3 (diff)
tdf#153541 notify listeners when any of the icon sizes change
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 <caolanm@redhat.com>
-rw-r--r--svtools/source/config/miscopt.cxx7
1 files changed, 7 insertions, 0 deletions
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
};
}