From 2b29eae9bd4e37d8f7fe1ff84a74cb8e7f0c527b Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 22 Mar 2003 00:05:00 +0000 Subject: Cleanup: get active tab using the function 2003-03-22 Marco Pesenti Gritti * src/ephy-window.c: (update_favicon_control): Cleanup: get active tab using the function --- ChangeLog | 6 ++++++ src/ephy-window.c | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 06909fd20..3b4415f38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-03-22 Marco Pesenti Gritti + + * src/ephy-window.c: (update_favicon_control): + + Cleanup: get active tab using the function + 2003-03-18 Marco Pesenti Gritti * lib/ephy-dialog.c: (setup_default_size): 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); -- cgit v1.2.3