summaryrefslogtreecommitdiffstats
path: root/src/tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tab.c')
-rw-r--r--src/tab.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tab.c b/src/tab.c
index 3304bd0..a29c64d 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -28,9 +28,9 @@
#include "tab-body.h"
static void
-update_tab_image(MqTab *tab)
+update_tab_image(MqTab *tab, cairo_surface_t *favicon)
{
- gtk_image_set_from_surface(GTK_IMAGE(tab->tab_image), tab->favicon);
+ gtk_image_set_from_surface(GTK_IMAGE(tab->tab_image), favicon);
}
static void
@@ -284,8 +284,10 @@ static void
favicon_cb(WebKitWebView __attribute__((unused)) *web_view,
GParamSpec __attribute__((unused)) *paramspec, MqTab *tab)
{
- tab->favicon = webkit_web_view_get_favicon(tab->web_view);
- update_tab_image(tab);
+ cairo_surface_t *favicon;
+
+ favicon = webkit_web_view_get_favicon(tab->web_view);
+ update_tab_image(tab, favicon);
}
static void