aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@src.gnome.org>2007-12-25 07:42:13 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2007-12-25 07:42:13 +0800
commit4b350bc5522d5040998ac09271c9318549ff4d07 (patch)
tree947fa061186e49e1f7d196f50754dfe611fad222 /embed
parent8a8564547627447b6405085b80cd196394f0f234 (diff)
downloadgsoc2013-epiphany-4b350bc5522d5040998ac09271c9318549ff4d07.tar
gsoc2013-epiphany-4b350bc5522d5040998ac09271c9318549ff4d07.tar.gz
gsoc2013-epiphany-4b350bc5522d5040998ac09271c9318549ff4d07.tar.bz2
gsoc2013-epiphany-4b350bc5522d5040998ac09271c9318549ff4d07.tar.lz
gsoc2013-epiphany-4b350bc5522d5040998ac09271c9318549ff4d07.tar.xz
gsoc2013-epiphany-4b350bc5522d5040998ac09271c9318549ff4d07.tar.zst
gsoc2013-epiphany-4b350bc5522d5040998ac09271c9318549ff4d07.zip
Fix missing tab title on empty page.
Bug #503854. svn path=/trunk/; revision=7817
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-base-embed.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/embed/ephy-base-embed.c b/embed/ephy-base-embed.c
index 4f611039a..1cf0ba0cb 100644
--- a/embed/ephy-base-embed.c
+++ b/embed/ephy-base-embed.c
@@ -47,6 +47,7 @@
#define MAX_TITLE_LENGTH 512 /* characters */
#define RELOAD_DELAY 250 /* ms */
#define RELOAD_DELAY_MAX_TICKS 40 /* RELOAD_DELAY * RELOAD_DELAY_MAX_TICKS = 10 s */
+#define EMPTY_PAGE _("Blank page") /* Title for the empty page */
struct _EphyBaseEmbedPrivate {
EphyEmbedAddressExpire address_expire;
@@ -674,8 +675,8 @@ ephy_base_embed_class_init (EphyBaseEmbedClass *klass)
g_param_spec_string ("title",
"Title",
"The embed's title",
- _ ("Blank page"),
- G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
+ EMPTY_PAGE,
+ G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
g_object_class_install_property (gobject_class,
PROP_STATUS_MESSAGE,
g_param_spec_string ("status-message",
@@ -920,7 +921,7 @@ ephy_base_embed_init (EphyBaseEmbed *self)
priv->zoom = 1.0;
priv->address_expire = EPHY_EMBED_ADDRESS_EXPIRE_NOW;
priv->is_blank = TRUE;
- priv->title = g_strdup (_("Blank page"));
+ priv->title = g_strdup (EMPTY_PAGE);
}
static void
@@ -1036,12 +1037,12 @@ ephy_base_embed_set_title (EphyBaseEmbed *embed,
/* Fallback */
if (title == NULL || title[0] == '\0') {
g_free (title);
- title = NULL;
+ title = g_strdup (EMPTY_PAGE);
priv->is_blank = TRUE;
}
} else if (priv->is_blank && title != NULL) {
g_free (title);
- title = NULL;
+ title = g_strdup (EMPTY_PAGE);
}
g_free (priv->title);