aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-10-26 04:01:00 +0800
committerXan Lopez <xan@src.gnome.org>2007-10-26 04:01:00 +0800
commit6638472fdbeee7c135c822ada01d09f407ca18e6 (patch)
tree9c9af360bfaaf544fd4ee45133b3eedb1ec7340c /src
parent2be1a6942311c3f8fd0d9335820919d281b437db (diff)
downloadgsoc2013-epiphany-6638472fdbeee7c135c822ada01d09f407ca18e6.tar
gsoc2013-epiphany-6638472fdbeee7c135c822ada01d09f407ca18e6.tar.gz
gsoc2013-epiphany-6638472fdbeee7c135c822ada01d09f407ca18e6.tar.bz2
gsoc2013-epiphany-6638472fdbeee7c135c822ada01d09f407ca18e6.tar.lz
gsoc2013-epiphany-6638472fdbeee7c135c822ada01d09f407ca18e6.tar.xz
gsoc2013-epiphany-6638472fdbeee7c135c822ada01d09f407ca18e6.tar.zst
gsoc2013-epiphany-6638472fdbeee7c135c822ada01d09f407ca18e6.zip
Move title/address update on open-uri signal to EphyEmbed.
Also refactor some common code in ephy-embed-utils.c svn path=/trunk/; revision=7562
Diffstat (limited to 'src')
-rw-r--r--src/ephy-tab.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 60056cddd..3f0db4291 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -801,26 +801,6 @@ ephy_tab_set_size (EphyTab *tab,
/* Private callbacks for embed signals */
-static gboolean
-ephy_tab_open_uri_cb (EphyEmbed *embed,
- const char *uri,
- EphyTab *tab)
-{
- EphyTabPrivate *priv = tab->priv;
-
- /* Set the address here if we have a blank page.
- * See bug #147840.
- */
- if (priv->is_blank)
- {
- ephy_embed_set_address (embed, g_strdup (uri));
- ephy_embed_set_loading_title (embed, uri, TRUE);
- }
-
- /* allow load to proceed */
- return FALSE;
-}
-
static void
ephy_tab_content_change_cb (EphyEmbed *embed, const char *address, EphyTab *tab)
{
@@ -1072,9 +1052,6 @@ ephy_tab_init (EphyTab *tab)
gtk_container_add (GTK_CONTAINER (tab), GTK_WIDGET (embed));
gtk_widget_show (GTK_WIDGET (embed));
- g_signal_connect_object (embed, "open_uri",
- G_CALLBACK (ephy_tab_open_uri_cb),
- tab, 0);
g_signal_connect_object (embed, "ge_new_window",
G_CALLBACK (ephy_tab_new_window_cb),
tab, 0);
@@ -1089,47 +1066,6 @@ ephy_tab_init (EphyTab *tab)
tab, 0);
}
-/**
- * ephy_tab_get_title_composite:
- * @tab: an #EphyTab
- *
- * Returns the title of the web page loaded in @tab.
- *
- * This differs from #ephy_tab_get_title in that this function
- * will return a special title while the page is still loading.
- *
- * Return value: @tab's web page's title. Will never be %NULL.
- **/
-const char *
-ephy_tab_get_title_composite (EphyTab *tab)
-{
- EphyTabPrivate *priv;
- const char *title = "";
- gboolean is_loading;
-
- g_return_val_if_fail (EPHY_IS_TAB (tab), NULL);
-
- priv = tab->priv;
-
- is_loading = ephy_embed_get_load_status (ephy_tab_get_embed (tab));
-
- if (priv->is_blank)
- {
- title = _("Blank page");
- }
- else if (is_loading &&
- priv->loading_title != NULL)
- {
- title = priv->loading_title;
- }
- else
- {
- title = priv->title;
- }
-
- return title != NULL ? title : "";
-}
-
/* private */
guint
_ephy_tab_get_id (EphyTab *tab)