[Libreoffice-commits] .: cui/source

Petr Mladek pmladek at kemper.freedesktop.org
Tue Nov 23 12:20:02 PST 2010


 cui/source/options/optgdlg.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit b9f13a55999290a3cfb3152a2d55919f582c12ce
Author: Petr Mladek <pmladek at suse.cz>
Date:   Tue Nov 23 21:18:44 2010 +0100

    show the really used default icon theme in options (bnc#603169)
    
    check also the icon theme prefered by the native widget plugin
    
    backport from ooo-build-3-2-1

diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index e2c58cc..d50f1f2 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -845,7 +845,11 @@ OfaViewTabPage::OfaViewTabPage(Window* pParent, const SfxItemSet& rSet ) :
 
         aAutoStr += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" (") );
 
-        ULONG nAutoStyle = aStyleSettings.GetAutoSymbolsStyle();
+        // prefer the icon style set by the desktop native widgets modules
+        ULONG nAutoStyle = aStyleSettings.GetPreferredSymbolsStyle();
+        // fallback to the statically defined values
+        if ( nAutoStyle == STYLE_SYMBOLS_AUTO || !aIconStyleItemId[nAutoStyle] )
+            nAutoStyle = aStyleSettings.GetAutoSymbolsStyle();
         if ( aIconStyleItemId[nAutoStyle] )
             aAutoStr += aIconStyleLB.GetEntry( aIconStyleItemId[nAutoStyle] );
 


More information about the Libreoffice-commits mailing list