From fafcdf7cd1897e868b9fcecf0114fcf68bb4fe52 Mon Sep 17 00:00:00 2001 From: stippi Date: Sun, 21 Feb 2010 13:34:54 +0000 Subject: [PATCH] Introduced BWebPage::ResendNotifications(). This is a simple way for the window to update itself to the properties of a page when switching pages. Resolves deadlock problem with BWebPage::CanGoInDirection(), which I've removed. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@162 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/LauncherWindow.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/apps/webpositive/LauncherWindow.cpp b/src/apps/webpositive/LauncherWindow.cpp index d1ef7f15eb..6c5100a246 100644 --- a/src/apps/webpositive/LauncherWindow.cpp +++ b/src/apps/webpositive/LauncherWindow.cpp @@ -345,11 +345,9 @@ void LauncherWindow::MessageReceived(BMessage* message) setCurrentWebView(dynamic_cast(m_tabView->ViewForTab(index))); updateTitle(m_tabView->TabAt(index)->Label()); m_url->TextView()->SetText(currentWebView()->mainFrameURL()); -// BWebPage* page = currentWebView()->webPage(); -// bool canGoForward = page->CanGoInDirection(1); -// bool canGoBackward = page->CanGoInDirection(-1); -// navigationCapabilitiesChanged(canGoForward, canGoBackward, false, -// currentWebView()); + // Trigger update of the interface to the new page, by requesting + // to resend all notifications. + currentWebView()->webPage()->ResendNotifications(); break; }