[epiphany] ephy-window: set statusbar cid on notebook's page-added
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-window: set statusbar cid on notebook's page-added
- Date: Fri, 30 Dec 2011 20:32:53 +0000 (UTC)
commit da6fe79eb72e076b5accd13af7654fe9ffa5516c
Author: Xan Lopez <xan igalia com>
Date: Fri Dec 30 21:31:21 2011 +0100
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.
src/ephy-window.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 8b6b439..f83f489 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]