aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-12-27 03:07:03 +0800
committerXan Lopez <xan@src.gnome.org>2007-12-27 03:07:03 +0800
commit820490d66240bd04ece59683f6584ac1bcaa3add (patch)
tree8b0f898bc81d80d3f434dfbb90d2ae00c4e3d470 /embed
parent7236ef4936158ed4f713d5d5da061e0696e9ea76 (diff)
downloadgsoc2013-epiphany-820490d66240bd04ece59683f6584ac1bcaa3add.tar.gz
gsoc2013-epiphany-820490d66240bd04ece59683f6584ac1bcaa3add.tar.zst
gsoc2013-epiphany-820490d66240bd04ece59683f6584ac1bcaa3add.zip
If is_blank is TRUE then set title to Blank page without checking whether
title was NULL or not. Fixes (again!) empty new tabs. svn path=/trunk/; revision=7829
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-base-embed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/embed/ephy-base-embed.c b/embed/ephy-base-embed.c
index 2e4bd7255..2d695a0b8 100644
--- a/embed/ephy-base-embed.c
+++ b/embed/ephy-base-embed.c
@@ -1040,7 +1040,7 @@ ephy_base_embed_set_title (EphyBaseEmbed *embed,
title = g_strdup (EMPTY_PAGE);
priv->is_blank = TRUE;
}
- } else if (priv->is_blank && title != NULL) {
+ } else if (priv->is_blank) {
g_free (title);
title = g_strdup (EMPTY_PAGE);
}
@@ -1448,7 +1448,7 @@ ephy_base_embed_location_changed (EphyBaseEmbed *embed,
if (location == NULL || location[0] == '\0' ||
strcmp (location, "about:blank") == 0) {
ephy_base_embed_set_address (embed, NULL);
- ephy_base_embed_set_title (embed, NULL);
+ ephy_base_embed_set_title (embed, EMPTY_PAGE);
} else {
char *embed_address;