aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-03-22 08:05:00 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-03-22 08:05:00 +0800
commit2b29eae9bd4e37d8f7fe1ff84a74cb8e7f0c527b (patch)
tree335c9cdced5ac7464bd466471e527d75843a227c /src/ephy-window.c
parentb68c6da7c78ccd283f7589848f830f76816bcfcd (diff)
downloadgsoc2013-epiphany-2b29eae9bd4e37d8f7fe1ff84a74cb8e7f0c527b.tar
gsoc2013-epiphany-2b29eae9bd4e37d8f7fe1ff84a74cb8e7f0c527b.tar.gz
gsoc2013-epiphany-2b29eae9bd4e37d8f7fe1ff84a74cb8e7f0c527b.tar.bz2
gsoc2013-epiphany-2b29eae9bd4e37d8f7fe1ff84a74cb8e7f0c527b.tar.lz
gsoc2013-epiphany-2b29eae9bd4e37d8f7fe1ff84a74cb8e7f0c527b.tar.xz
gsoc2013-epiphany-2b29eae9bd4e37d8f7fe1ff84a74cb8e7f0c527b.tar.zst
gsoc2013-epiphany-2b29eae9bd4e37d8f7fe1ff84a74cb8e7f0c527b.zip
Cleanup: get active tab using the function
2003-03-22 Marco Pesenti Gritti <marco@it.gnome.org> * src/ephy-window.c: (update_favicon_control): Cleanup: get active tab using the function
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 5355d75f9..c2b6e9961 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1127,14 +1127,17 @@ update_favicon_control (EphyWindow *window)
const char *location;
EphyFaviconCache *cache;
GdkPixbuf *pixbuf = NULL;
+ EphyTab *tab;
+
+ tab = ephy_window_get_active_tab (window);
+ g_return_if_fail (tab != NULL);
cache = ephy_embed_shell_get_favicon_cache
(EPHY_EMBED_SHELL (ephy_shell));
- location = ephy_tab_get_favicon_url (window->priv->active_tab);
+ location = ephy_tab_get_favicon_url (tab);
if (location)
{
-
pixbuf = ephy_favicon_cache_get (cache, location);
}
gtk_window_set_icon (GTK_WINDOW (window), pixbuf);