[epiphany/overview] ephy-notebook.c: sync label with the embed title instead of the webview one
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview] ephy-notebook.c: sync label with the embed title instead of the webview one
- Date: Mon, 20 Aug 2012 16:13:10 +0000 (UTC)
commit 081f5a3b37f85c73e234ee04d2b32e31d7a29408
Author: Claudio Saavedra <csaavedra igalia com>
Date: Mon Aug 20 16:55:47 2012 +0300
ephy-notebook.c: sync label with the embed title instead of the webview one
src/ephy-notebook.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index f72af06..9b30d72 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -589,11 +589,11 @@ sync_icon (EphyWebView *view,
}
static void
-sync_label (EphyWebView *view, GParamSpec *pspec, GtkWidget *label)
+sync_label (EphyEmbed *embed, GParamSpec *pspec, GtkWidget *label)
{
const char *title;
- title = ephy_web_view_get_title (view);
+ title = ephy_embed_get_title (embed);
gtk_label_set_text (GTK_LABEL (label), title);
}
@@ -706,12 +706,12 @@ build_tab_label (EphyNotebook *nb, EphyEmbed *embed)
/* Hook the label up to the tab properties */
view = ephy_embed_get_web_view (embed);
sync_icon (view, NULL, GTK_IMAGE (icon));
- sync_label (view, NULL, label);
+ sync_label (embed, NULL, label);
sync_load_status (view, NULL, hbox);
g_signal_connect_object (view, "notify::icon",
G_CALLBACK (sync_icon), icon, 0);
- g_signal_connect_object (view, "notify::embed-title",
+ g_signal_connect_object (embed, "notify::title",
G_CALLBACK (sync_label), label, 0);
#ifdef HAVE_WEBKIT2
g_signal_connect_object (view, "load-changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]