[epiphany] ephy-tabs-menu.c: tab titles are not updated.
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Subject: [epiphany] ephy-tabs-menu.c: tab titles are not updated.
- Date: Mon, 8 Jun 2009 07:19:28 -0400 (EDT)
commit 6df28df51d598e2fc034e709ff875fd8cff67e9a
Author: Xan Lopez <xan gnome org>
Date: Mon Jun 8 14:18:00 2009 +0300
ephy-tabs-menu.c: tab titles are not updated.
Code was not updated to reflect latest refactorings.
Bug #585139
---
src/ephy-tabs-menu.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c
index 6963ef3..e7d7ba8 100644
--- a/src/ephy-tabs-menu.c
+++ b/src/ephy-tabs-menu.c
@@ -170,13 +170,13 @@ tab_action_activate_cb (GtkToggleAction *action,
}
static void
-sync_tab_title (EphyEmbed *embed,
+sync_tab_title (EphyWebView *view,
GParamSpec *pspec,
GtkAction *action)
{
const char *title;
- title = ephy_embed_utils_get_title_composite (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed));
+ title = ephy_embed_utils_get_title_composite (view);
g_object_set (action, "label", title, NULL);
}
@@ -203,7 +203,7 @@ notebook_page_added_cb (EphyNotebook *notebook,
sync_tab_title (embed, NULL, action);
/* make sure the action is alive when handling the signal, see bug #169833 */
- g_signal_connect_object (embed, "notify::title",
+ g_signal_connect_object (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed), "notify::embed-title",
G_CALLBACK (sync_tab_title), action, 0);
gtk_action_group_add_action_with_accel (priv->action_group, action, NULL);
@@ -245,7 +245,7 @@ notebook_page_removed_cb (EphyNotebook *notebook,
free_tab_id (action);
g_signal_handlers_disconnect_by_func
- (embed, G_CALLBACK (sync_tab_title), action);
+ (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed), G_CALLBACK (sync_tab_title), action);
g_signal_handlers_disconnect_by_func
(action, G_CALLBACK (tab_action_activate_cb), menu);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]