Revert the default of the Auto-hide mouse pointer setting, by popular request.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@515 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-05-22 13:51:29 +00:00 committed by Alexandre Deckner
parent 3a3173e8cb
commit 807ee4b477
2 changed files with 4 additions and 4 deletions

View File

@ -236,7 +236,7 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings,
fZoomTextOnly(true),
fShowTabsIfSinglePageOpen(true),
fAutoHideInterfaceInFullscreenMode(false),
fAutoHidePointer(true)
fAutoHidePointer(false)
{
// Begin listening to settings changes and read some current values.
fAppSettings->AddListener(BMessenger(this));

View File

@ -335,7 +335,7 @@ SettingsWindow::_CreateGeneralPage(float spacing)
fAutoHidePointer = new BCheckBox("auto-hide pointer",
B_TRANSLATE("Auto-hide mouse pointer."),
new BMessage(MSG_AUTO_HIDE_POINTER_BEHAVIOR_CHANGED));
fAutoHidePointer->SetValue(B_CONTROL_ON);
fAutoHidePointer->SetValue(B_CONTROL_OFF);
BView* view = BGroupLayoutBuilder(B_VERTICAL, spacing / 2)
.Add(BGridLayoutBuilder(spacing / 2, spacing / 2)
@ -538,7 +538,7 @@ SettingsWindow::_CanApplySettings() const
canApply = canApply || (
(fAutoHidePointer->Value() == B_CONTROL_ON)
!= fSettings->GetValue(kSettingsKeyAutoHidePointer, true));
!= fSettings->GetValue(kSettingsKeyAutoHidePointer, false));
canApply = canApply || (_MaxHistoryAge()
!= BrowsingHistory::DefaultInstance()->MaxHistoryItemAge());
@ -671,7 +671,7 @@ SettingsWindow::_RevertSettings()
fSettings->GetValue(kSettingsKeyAutoHideInterfaceInFullscreenMode,
false));
fAutoHidePointer->SetValue(
fSettings->GetValue(kSettingsKeyAutoHidePointer, true));
fSettings->GetValue(kSettingsKeyAutoHidePointer, false));
BString text;
text << BrowsingHistory::DefaultInstance()->MaxHistoryItemAge();