From bfa88618a8fbeb31c72a8a2cad5844aba1d2876a Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Wed, 4 Aug 2004 19:53:27 +0000 Subject: [PATCH] =?UTF-8?q?Thx=20to=20Herv=EF=BF=BD=20Poussineau=20the=20g?= =?UTF-8?q?cc=203.3.x=20are=20working=20agein=20poussine@freesurf.fr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=10396 --- reactos/subsys/system/explorer/dialogs/settings.cpp | 12 ++++++++++-- .../subsys/system/explorer/taskbar/traynotify.cpp | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/reactos/subsys/system/explorer/dialogs/settings.cpp b/reactos/subsys/system/explorer/dialogs/settings.cpp index 11cf849d4fd..02fb0378527 100644 --- a/reactos/subsys/system/explorer/dialogs/settings.cpp +++ b/reactos/subsys/system/explorer/dialogs/settings.cpp @@ -192,16 +192,24 @@ int TaskbarSettingsDlg::Command(int id, int code) break; case ID_SHOW_CLOCK: - XMLBoolRef(XMLPos(g_Globals.get_cfg("desktopbar"),"options"), "show-clock", true).toggle(); + { + XMLBoolRef boolRef1(XMLPos(g_Globals.get_cfg("desktopbar"),"options"), "show-clock", true); + boolRef1.toggle(); SendMessage(g_Globals._hwndDesktopBar, PM_REFRESH_CONFIG, 0, 0); PropSheet_Changed(GetParent(_hwnd), _hwnd); break; + } + case ID_HIDE_INACTIVE_ICONS: - XMLBoolRef(XMLPos(g_Globals.get_cfg("notify-icons"),"options"), "hide-inactive", true).toggle(); + { + XMLBoolRef boolRef2(XMLPos(g_Globals.get_cfg("notify-icons"),"options"), "hide-inactive", true); + boolRef2.toggle(); SendMessage(g_Globals._hwndDesktopBar, PM_REFRESH_CONFIG, 0, 0); PropSheet_Changed(GetParent(_hwnd), _hwnd); break; + } + default: return 1; diff --git a/reactos/subsys/system/explorer/taskbar/traynotify.cpp b/reactos/subsys/system/explorer/taskbar/traynotify.cpp index 9e830d36c8e..1257337bb35 100644 --- a/reactos/subsys/system/explorer/taskbar/traynotify.cpp +++ b/reactos/subsys/system/explorer/taskbar/traynotify.cpp @@ -262,7 +262,8 @@ void NotifyArea::write_config() XMLPos pos = g_Globals.get_cfg(); pos.smart_create("desktopbar"); - XMLBoolRef(XMLPos(pos,"options"), "show-clock") = _hwndClock!=0; + XMLBoolRef boolRef(XMLPos(pos,"options"), "show-clock"); + boolRef = _hwndClock!=0; pos.back(); pos.smart_create("notify-icons");