aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-web-view.c21
-rw-r--r--embed/ephy-web-view.h2
2 files changed, 5 insertions, 18 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 7a9a49b62..f4c5c1953 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3697,34 +3697,21 @@ ephy_web_view_save (EphyWebView *view, const char *uri)
* ephy_web_view_load_homepage:
* @view: an #EphyWebView
*
- * Loads the homepage set by the user in @view.
+ * Loads the homepage, which is hardcoded to be "about:blank"
*
- * Returns: %TRUE if there was a homepage set to be loaded in the user
- * preferences, %FALSE otherwise
**/
-gboolean
+void
ephy_web_view_load_homepage (EphyWebView *view)
{
char *home;
- gboolean is_empty;
g_signal_emit_by_name (view, "loading-homepage");
- home = g_settings_get_string (EPHY_SETTINGS_MAIN, EPHY_PREFS_HOMEPAGE_URL);
+ home = g_strdup ("about:blank");
- if (home == NULL || home[0] == '\0')
- {
- g_free (home);
-
- home = g_strdup ("about:blank");
- }
-
- is_empty = ephy_embed_utils_url_is_empty (home);
- ephy_web_view_load_url (view, home);
+ ephy_web_view_load_url (view, "about:blank");
g_free (home);
-
- return is_empty;
}
/**
diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h
index de0392187..6b3559dcc 100644
--- a/embed/ephy-web-view.h
+++ b/embed/ephy-web-view.h
@@ -191,7 +191,7 @@ void ephy_web_view_set_loading_title (EphyWebView
void ephy_web_view_popups_manager_reset (EphyWebView *view);
void ephy_web_view_save (EphyWebView *view,
const char *uri);
-gboolean ephy_web_view_load_homepage (EphyWebView *view);
+void ephy_web_view_load_homepage (EphyWebView *view);
char *
ephy_web_view_create_web_application (EphyWebView *view, const char *title, GdkPixbuf *icon);