Make the default location for the download window the lower right corner of
screen, like NetPositive. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@554 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
parent
8ee88f9b6d
commit
290dc11464
@ -152,8 +152,15 @@ BrowserApp::ReadyToRun()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
fLastWindowFrame = fSettings->GetValue("window frame", fLastWindowFrame);
|
fLastWindowFrame = fSettings->GetValue("window frame", fLastWindowFrame);
|
||||||
|
// Put download window in lower right of screen. 375 is about the minimum
|
||||||
|
// width with the default layout.
|
||||||
|
BRect defaultDownloadWindowFrame(0, 0, 375, 275);
|
||||||
|
BRect screenFrame = BScreen().Frame();
|
||||||
|
// The extra 5 pixels is for the decorator frame
|
||||||
|
defaultDownloadWindowFrame.OffsetTo(screenFrame.Width() - defaultDownloadWindowFrame.Width() - 5,
|
||||||
|
screenFrame.Height() - defaultDownloadWindowFrame.Height() - 5);
|
||||||
BRect downloadWindowFrame = fSettings->GetValue("downloads window frame",
|
BRect downloadWindowFrame = fSettings->GetValue("downloads window frame",
|
||||||
BRect(100, 100, 300, 250));
|
defaultDownloadWindowFrame);
|
||||||
BRect settingsWindowFrame = fSettings->GetValue("settings window frame",
|
BRect settingsWindowFrame = fSettings->GetValue("settings window frame",
|
||||||
BRect());
|
BRect());
|
||||||
bool showDownloads = fSettings->GetValue("show downloads", false);
|
bool showDownloads = fSettings->GetValue("show downloads", false);
|
||||||
|
Loading…
Reference in New Issue
Block a user