aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2011-12-31 04:31:21 +0800
committerXan Lopez <xan@igalia.com>2011-12-31 04:31:21 +0800
commitda6fe79eb72e076b5accd13af7654fe9ffa5516c (patch)
tree5d1e5752c9a1e704522dc56b2677fadda8fe0839 /src/ephy-window.c
parent360ee676cd5cbf21f03069db5b89f0f7397f371d (diff)
downloadgsoc2013-epiphany-da6fe79eb72e076b5accd13af7654fe9ffa5516c.tar
gsoc2013-epiphany-da6fe79eb72e076b5accd13af7654fe9ffa5516c.tar.gz
gsoc2013-epiphany-da6fe79eb72e076b5accd13af7654fe9ffa5516c.tar.bz2
gsoc2013-epiphany-da6fe79eb72e076b5accd13af7654fe9ffa5516c.tar.lz
gsoc2013-epiphany-da6fe79eb72e076b5accd13af7654fe9ffa5516c.tar.xz
gsoc2013-epiphany-da6fe79eb72e076b5accd13af7654fe9ffa5516c.tar.zst
gsoc2013-epiphany-da6fe79eb72e076b5accd13af7654fe9ffa5516c.zip
ephy-window: set statusbar cid on notebook's page-added
In some cases tabs can be added to the window without going through the EmbedContainer add method (for instance, with DnD of tabs between windows). Being that the case, set the CID for the statusbar on notebook's page-added handler, which is always called.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 8b6b439f3..f83f4890a 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -498,11 +498,6 @@ impl_add_child (EphyEmbedContainer *container,
g_return_val_if_fail (!window->priv->is_popup ||
gtk_notebook_get_n_pages (GTK_NOTEBOOK (window->priv->notebook)) < 1, -1);
- window->priv->tab_message_cid = ephy_embed_statusbar_get_context_id
- (child, EPHY_EMBED_STATUSBAR_TAB_MESSAGE_CONTEXT_DESCRIPTION);
- window->priv->help_message_cid = ephy_embed_statusbar_get_context_id
- (child, EPHY_EMBED_STATUSBAR_HELP_MESSAGE_CONTEXT_DESCRIPTION);
-
return ephy_notebook_add_tab (EPHY_NOTEBOOK (window->priv->notebook),
child, position, jump_to);
}
@@ -3151,12 +3146,17 @@ notebook_page_added_cb (EphyNotebook *notebook,
EphyWindowPrivate *priv = window->priv;
EphyExtension *manager;
- LOG ("page-added notebook %p embed %p position %u\n", notebook, embed, position);
+ LOG ("page-added notebook %p embed %p position %u\n", notebook, embed, position);
g_return_if_fail (EPHY_IS_EMBED (embed));
priv->num_tabs++;
+ priv->tab_message_cid = ephy_embed_statusbar_get_context_id
+ (embed, EPHY_EMBED_STATUSBAR_TAB_MESSAGE_CONTEXT_DESCRIPTION);
+ priv->help_message_cid = ephy_embed_statusbar_get_context_id
+ (embed, EPHY_EMBED_STATUSBAR_HELP_MESSAGE_CONTEXT_DESCRIPTION);
+
#if 0
g_signal_connect_object (embed, "open-link",
G_CALLBACK (ephy_link_open), window,