diff --git a/src/apps/webpositive/BrowserApp.cpp b/src/apps/webpositive/BrowserApp.cpp index b12c380eff..67ce27db15 100644 --- a/src/apps/webpositive/BrowserApp.cpp +++ b/src/apps/webpositive/BrowserApp.cpp @@ -32,8 +32,8 @@ #include "BrowserWindow.h" #include "DownloadWindow.h" #include "WebPage.h" +#include "WebSettings.h" #include "WebView.h" -#include "WebViewConstants.h" #include #include #include @@ -104,6 +104,8 @@ BrowserApp::ReadyToRun() BWebPage::InitializeOnce(); BWebPage::SetCacheModel(B_WEBKIT_CACHE_MODEL_WEB_BROWSER); + BWebSettings::SetPersistentStoragePath("/boot/home/config/settings/WebPositive"); + BFile settingsFile; BRect windowFrameFromSettings = fLastWindowFrame; BRect downloadWindowFrame(100, 100, 300, 250); diff --git a/src/apps/webpositive/BrowserWindow.cpp b/src/apps/webpositive/BrowserWindow.cpp index 0fa866009e..c72925f889 100644 --- a/src/apps/webpositive/BrowserWindow.cpp +++ b/src/apps/webpositive/BrowserWindow.cpp @@ -700,6 +700,13 @@ BrowserWindow::TitleChanged(const BString& title, BWebView* view) } +void +BrowserWindow::IconReceived(const BBitmap* icon, BWebView* view) +{ + printf("BrowserWindow::IconReceived(%p, %p)\n", icon, view); +} + + void BrowserWindow::StatusChanged(const BString& statusText, BWebView* view) { diff --git a/src/apps/webpositive/BrowserWindow.h b/src/apps/webpositive/BrowserWindow.h index 568a49670a..9ef4426942 100644 --- a/src/apps/webpositive/BrowserWindow.h +++ b/src/apps/webpositive/BrowserWindow.h @@ -94,6 +94,8 @@ private: BWebView* view); virtual void TitleChanged(const BString& title, BWebView* view); + virtual void IconReceived(const BBitmap* icon, + BWebView* view); virtual void ResizeRequested(float width, float height, BWebView* view); virtual void SetToolBarsVisible(bool flag, BWebView* view);