linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #01712
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2208: make sure browser tab style remains disabled on < Vista
------------------------------------------------------------
revno: 2208
committer: poy <poy@xxxxxxxxxx>
branch nick: repo
timestamp: Wed 2010-08-11 18:56:23 +0200
message:
make sure browser tab style remains disabled on < Vista
modified:
win32/TabsPage.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'win32/TabsPage.cpp'
--- win32/TabsPage.cpp 2010-08-11 16:48:27 +0000
+++ win32/TabsPage.cpp 2010-08-11 16:56:23 +0000
@@ -69,7 +69,11 @@
GridPtr cur2 = group->addChild(Grid::Seed(2, 1));
dcppDraw = cur2->addChild(RadioButton::Seed(T_("Let DC++ draw tabs")));
dcppDraw->onClicked(std::bind(&TabsPage::createPreview, this));
- dcppDraw->onClicked([&themeGroup]() { themeGroup->setEnabled(true); });
+ dcppDraw->onClicked([&themeGroup, &browserTheme]() {
+ themeGroup->setEnabled(true);
+ if(!dwt::util::win32::ensureVersion(dwt::util::win32::VISTA))
+ browserTheme->setEnabled(false);
+ });
RadioButtonPtr button = cur2->addChild(RadioButton::Seed(T_("Use standard Windows tabs")));
button->onClicked(std::bind(&TabsPage::createPreview, this));
button->onClicked([&themeGroup]() { themeGroup->setEnabled(false); });