aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2011-12-04 00:08:37 +0800
committerXan Lopez <xan@igalia.com>2011-12-04 00:11:34 +0800
commitbea26fc30ac9ff3def2d18d237509a18b3829e27 (patch)
tree5da1657cf6b218587e4df68d7f3acfc1ac95edd8 /embed
parent0caf7b0f44349cbfd072cb49dbdc609de317a971 (diff)
downloadgsoc2013-epiphany-bea26fc30ac9ff3def2d18d237509a18b3829e27.tar
gsoc2013-epiphany-bea26fc30ac9ff3def2d18d237509a18b3829e27.tar.gz
gsoc2013-epiphany-bea26fc30ac9ff3def2d18d237509a18b3829e27.tar.bz2
gsoc2013-epiphany-bea26fc30ac9ff3def2d18d237509a18b3829e27.tar.lz
gsoc2013-epiphany-bea26fc30ac9ff3def2d18d237509a18b3829e27.tar.xz
gsoc2013-epiphany-bea26fc30ac9ff3def2d18d237509a18b3829e27.tar.zst
gsoc2013-epiphany-bea26fc30ac9ff3def2d18d237509a18b3829e27.zip
Remove homepage preference from GSettings
Hardcode it to be "about:blank". The final step could be completely remove the rest of the code, but it might be useful for the future Overview page (if we consider it the new "homepage"). https://bugzilla.gnome.org/show_bug.cgi?id=665469
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);