summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-22 03:00:36 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-22 03:03:06 (EDT)
commitad825266b2554b6dd4ed12da94a93b638dc1e564 (patch)
treea7daef0d1d719652bd8804904dc1bb8d59c65003 /src
parentfd1f91d34176b15755a712de3d90923856964de2 (diff)
downloadmarquee-ad825266b2554b6dd4ed12da94a93b638dc1e564.zip
marquee-ad825266b2554b6dd4ed12da94a93b638dc1e564.tar.gz
marquee-ad825266b2554b6dd4ed12da94a93b638dc1e564.tar.bz2
main(): Enable favicons database
That was easy to fix.
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
-rw-r--r--src/tab.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 447e724..7b297ce 100644
--- a/src/main.c
+++ b/src/main.c
@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <gtk/gtk.h>
+#include <webkit2/webkit2.h>
#include "window.h"
@@ -81,6 +82,9 @@ main(int argc, char *argv[])
g_set_application_name("Marquee");
+ webkit_web_context_set_favicon_database_directory(
+ webkit_web_context_get_default(), NULL);
+
mq_window_new(opt_uris);
gtk_main();
diff --git a/src/tab.c b/src/tab.c
index be3fa70..7681c40 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -210,7 +210,6 @@ mq_tab_new(gchar *uri)
tab->chrome = mq_tab_chrome_new(uri);
tab->body = mq_tab_body_new(uri);
tab->web_view = mq_tab_body_get_web_view(tab->body);
- /* FIXME: Doesn't work? */
g_signal_connect(tab->web_view, "notify::favicon",
G_CALLBACK(favicon_cb), tab);
g_signal_connect(tab->web_view, "notify::title",