[epiphany] ephy-web-view: do not duplicate the setter code for typed-address



commit c8d755a095494d91e23e5764623ea53c72190e69
Author: Xan Lopez <xan igalia com>
Date:   Thu Jun 28 11:58:06 2012 +0200

    ephy-web-view: do not duplicate the setter code for typed-address

 embed/ephy-web-view.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index c2e8572..cf7e662 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3057,13 +3057,8 @@ ephy_web_view_set_address (EphyWebView *view,
              strcmp (address, "about:blank") == 0;
   _ephy_web_view_set_is_blank (view, is_blank);
 
-  if (ephy_web_view_is_loading (view) &&
-      priv->typed_address != NULL) {
-    g_free (priv->typed_address);
-    priv->typed_address = NULL;
-
-    g_object_notify (object, "typed-address");
-  }
+  if (ephy_web_view_is_loading (view) && priv->typed_address != NULL)
+    ephy_web_view_set_typed_address (view, NULL);
 
   g_object_notify (object, "address");
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]