svtools/source/config/miscopt.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit fd92b09db497a7dfd594a5418f87856dc3886bf9
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Feb 14 13:12:38 2023 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Feb 14 15:51:49 2023 +0000

    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 <caol...@redhat.com>

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
     };
 }
 

Reply via email to