Thx to Herv� Poussineau the gcc 3.3.x are working agein

[email protected]

svn path=/trunk/; revision=10396
This commit is contained in:
Magnus Olsen
2004-08-04 19:53:27 +00:00
parent f167814f32
commit bfa88618a8
2 changed files with 12 additions and 3 deletions
@@ -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;
@@ -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");