diff options
author | Release Engineers <releng@openoffice.org> | 2009-04-14 17:47:15 +0000 |
---|---|---|
committer | Release Engineers <releng@openoffice.org> | 2009-04-14 17:47:15 +0000 |
commit | ad1abf647df65ec7b7bced355cb3da4ee6bbdfb2 (patch) | |
tree | 0b74bfcfe1d734b639c9b3ba2fc9f8a1e63a763b /desktop/source | |
parent | c7961e7145ecf2a9531cf416222f7ecda8b81167 (diff) |
CWS-TOOLING: integrate CWS gtkmenuimages
2009-04-03 14:02:10 +0200 jsk r270485 : #i100820
2009-04-02 17:03:55 +0200 pl r270425 : CWS-TOOLING: rebase CWS gtkmenuimages to trunk@270033 (milestone: DEV300:m45)
2009-03-06 16:39:53 +0100 cmc r269021 : #i95318# pretty dialog up
2009-03-05 21:01:40 +0100 cmc r268944 : #i95318# pretty dialog up
2009-03-03 15:03:28 +0100 cmc r268731 : #i95318# pretty dialog up
2009-03-03 15:02:52 +0100 cmc r268730 : #i95318# pretty dialog up
2009-02-04 18:09:37 +0100 cmc r267397 : #i95318# follow system theme for defaults for icons on or off in menus
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/app/app.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 4fb9d3b7d7b6..8675d22e0aae 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -123,6 +123,7 @@ #include <svtools/languageoptions.hxx> #include <svtools/internaloptions.hxx> #include <svtools/miscopt.hxx> +#include <svtools/menuoptions.hxx> #include <svtools/syslocaleoptions.hxx> #include <svtools/folderrestriction.hxx> #include <unotools/tempfile.hxx> @@ -1772,6 +1773,24 @@ void Desktop::SystemSettingsChanging( AllSettings& rSettings, Window* ) hMouseSettings.SetFollow( aAppearanceCfg.IsMenuMouseFollow() ? (nFollow|MOUSE_FOLLOW_MENU) : (nFollow&~MOUSE_FOLLOW_MENU)); rSettings.SetMouseSettings(hMouseSettings); + BOOL bUseImagesInMenus = hStyleSettings.GetUseImagesInMenus(); + + SvtMenuOptions aMenuOpt; + nGet = aMenuOpt.GetMenuIconsState(); + switch ( nGet ) + { + case 0: + bUseImagesInMenus = FALSE; + break; + case 1: + bUseImagesInMenus = TRUE; + break; + case 2: + default: + break; + } + hStyleSettings.SetUseImagesInMenus(bUseImagesInMenus); + sal_uInt16 nTabStyle = hStyleSettings.GetTabControlStyle(); nTabStyle &= ~STYLE_TABCONTROL_SINGLELINE; if( aAppearanceCfg.IsSingleLineTabCtrl() ) |