aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-08-18 01:23:52 +0800
committerChristian Persch <chpe@src.gnome.org>2005-08-18 01:23:52 +0800
commit9dc72322ce56b9e377a1d889ea5bd4453f69ea47 (patch)
treef3c90e1ce4ad1c19944c978277c85319f910e549 /src
parent1f6738608dcf343978412ed273ad58e974b4811a (diff)
downloadgsoc2013-epiphany-9dc72322ce56b9e377a1d889ea5bd4453f69ea47.tar
gsoc2013-epiphany-9dc72322ce56b9e377a1d889ea5bd4453f69ea47.tar.gz
gsoc2013-epiphany-9dc72322ce56b9e377a1d889ea5bd4453f69ea47.tar.bz2
gsoc2013-epiphany-9dc72322ce56b9e377a1d889ea5bd4453f69ea47.tar.lz
gsoc2013-epiphany-9dc72322ce56b9e377a1d889ea5bd4453f69ea47.tar.xz
gsoc2013-epiphany-9dc72322ce56b9e377a1d889ea5bd4453f69ea47.tar.zst
gsoc2013-epiphany-9dc72322ce56b9e377a1d889ea5bd4453f69ea47.zip
Better fix: reorder again and use priv->title for the set_loading_title
2005-08-17 Christian Persch <chpe@cvs.gnome.org> * src/ephy-tab.c: (ephy_tab_set_loading_title), Better fix: reorder again and use priv->title for the set_loading_title call after the set_title call.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-tab.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index a0f1ed390..2236cdd18 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -898,8 +898,6 @@ ephy_tab_set_loading_title (EphyTab *tab,
g_free (priv->loading_title);
priv->loading_title = NULL;
- if (title == NULL) return;
-
if (is_address)
{
title = freeme = get_title_from_address (title);
@@ -1562,19 +1560,17 @@ ephy_tab_zoom_changed_cb (EphyEmbed *embed, float zoom, EphyTab *tab)
}
static void
-ephy_tab_title_cb (EphyEmbed *embed, EphyTab *tab)
+ephy_tab_title_cb (EphyEmbed *embed,
+ EphyTab *tab)
{
+ EphyTabPrivate *priv = tab->priv;
GObject *object = G_OBJECT (tab);
- char *title;
-
- title = ephy_embed_get_title (embed);
g_object_freeze_notify (object);
- ephy_tab_set_loading_title (tab, title, FALSE);
+ ephy_tab_set_title (tab, embed, ephy_embed_get_title (embed));
- /* this consumes and/or frees |title| ! */
- ephy_tab_set_title (tab, embed, title);
+ ephy_tab_set_loading_title (tab, priv->title, FALSE);
g_object_thaw_notify (object);
}