[epiphany] Fix title modification in provisional state
- From: Alejandro Garcia Castro <acastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Fix title modification in provisional state
- Date: Tue, 4 May 2010 11:53:24 +0000 (UTC)
commit 41e747ab437e9aa6d90015314f49d2955a3ef293
Author: Alejandro G. Castro <alex igalia com>
Date: Tue May 4 12:33:00 2010 +0200
Fix title modification in provisional state
Avoid setting the provisional uri as the title if there is already
a typed address, and set the loading_title before using it in the
status message.
Bug #593743
embed/ephy-web-view.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 8f77b12..b10e38a 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2029,15 +2029,17 @@ load_status_cb (WebKitWebView *web_view,
g_signal_emit_by_name (view, "new-document-now", loading_uri);
if ((priv->address == NULL || priv->address[0] == '\0') &&
- priv->expire_address_now == TRUE)
+ priv->expire_address_now == TRUE) {
ephy_web_view_set_address (view, loading_uri);
+ ephy_web_view_set_title (view, NULL);
+ }
+
+ ephy_web_view_set_loading_title (view, loading_uri, TRUE);
g_free (priv->status_message);
priv->status_message = g_strdup (priv->loading_title);
g_object_notify (object, "status-message");
- ephy_web_view_set_title (view, NULL);
- ephy_web_view_set_loading_title (view, loading_uri, TRUE);
priv->expire_address_now = TRUE;
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]