* renamed settings file for Time preflet window position from 'Time_settings'
to 'Time_preflet_window' in order to be less confusable with the other 'Time settings', which contain the actual selected values (timezone, etc.) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38152 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
* Julun <[email protected]>
|
* Julun <[email protected]>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "TimeSettings.h"
|
#include "TimeSettings.h"
|
||||||
#include "TimeMessages.h"
|
#include "TimeMessages.h"
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
|
|
||||||
TimeSettings::TimeSettings()
|
TimeSettings::TimeSettings()
|
||||||
: fSettingsFile("Time_settings")
|
: fSettingsFile("Time_preflet_window")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ TimeSettings::LeftTop() const
|
|||||||
|
|
||||||
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) {
|
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) {
|
||||||
path.Append(fSettingsFile.String());
|
path.Append(fSettingsFile.String());
|
||||||
|
|
||||||
BFile file(path.Path(), B_READ_ONLY);
|
BFile file(path.Path(), B_READ_ONLY);
|
||||||
if (file.InitCheck() == B_OK) {
|
if (file.InitCheck() == B_OK) {
|
||||||
BPoint tmp;
|
BPoint tmp;
|
||||||
@@ -58,7 +58,7 @@ TimeSettings::SetLeftTop(const BPoint leftTop)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
path.Append(fSettingsFile.String());
|
path.Append(fSettingsFile.String());
|
||||||
|
|
||||||
BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
|
BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
|
||||||
if (file.InitCheck() == B_OK)
|
if (file.InitCheck() == B_OK)
|
||||||
file.Write(&leftTop, sizeof(BPoint));
|
file.Write(&leftTop, sizeof(BPoint));
|
||||||
|
|||||||
Reference in New Issue
Block a user