From 7d58850eb100ff84bb2fe3f48658e01f64bb088c Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Mon, 7 Sep 2009 15:28:28 +0300 Subject: Simplify EXPIRE logic in ephy_web_view_set_typed_address The whole thing just had one functionality at this point as far as I can see: prevent the typed address from being wiped out when a page is loading. Simplify the code to do just that. --- embed/ephy-web-view.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'embed/ephy-web-view.h') diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h index dd92b9d5d..d50bf4fa1 100644 --- a/embed/ephy-web-view.h +++ b/embed/ephy-web-view.h @@ -108,13 +108,6 @@ typedef enum EPHY_WEB_VIEW_DOCUMENT_OTHER } EphyWebViewDocumentType; -typedef enum -{ - EPHY_WEB_VIEW_ADDRESS_EXPIRE_NOW, - EPHY_WEB_VIEW_ADDRESS_EXPIRE_NEXT, - EPHY_WEB_VIEW_ADDRESS_EXPIRE_CURRENT -} EphyWebViewAddressExpire; - struct _EphyWebView { WebKitWebView parent; @@ -195,8 +188,7 @@ void ephy_web_view_set_visibility (EphyWebView gboolean visibility); const char * ephy_web_view_get_typed_address (EphyWebView *view); void ephy_web_view_set_typed_address (EphyWebView *view, - const char *address, - EphyWebViewAddressExpire expire); + const char *address); gboolean ephy_web_view_get_is_blank (EphyWebView *view); gboolean ephy_web_view_has_modified_forms (EphyWebView *view); char * ephy_web_view_get_location (EphyWebView *view, -- cgit