diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-22 03:56:50 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-22 03:56:50 (EDT) |
commit | 7dc68171bf758b2c9697df982996ff22d4803da4 (patch) | |
tree | a53c473238a24f77a055e7b344d0bbd9f8c975a4 | |
parent | 8937b2f7b252a1aa74f6885ae5697f8124fce4e6 (diff) | |
download | marquee-7dc68171bf758b2c9697df982996ff22d4803da4.zip marquee-7dc68171bf758b2c9697df982996ff22d4803da4.tar.gz marquee-7dc68171bf758b2c9697df982996ff22d4803da4.tar.bz2 |
Enable WK favicon DB in MqApplication, not main()
-rw-r--r-- | src/application.c | 4 | ||||
-rw-r--r-- | src/main.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/application.c b/src/application.c index 867d0fc..b46f58f 100644 --- a/src/application.c +++ b/src/application.c @@ -22,6 +22,7 @@ #include <stdlib.h> #include <gtk/gtk.h> +#include <webkit2/webkit2.h> #include "application.h" #include "window.h" @@ -35,6 +36,9 @@ mq_application_new(gchar __attribute__((unused)) *profile, application = malloc(sizeof(*application)); application->window_count = 0; + webkit_web_context_set_favicon_database_directory( + webkit_web_context_get_default(), NULL); + return application; } @@ -26,7 +26,6 @@ #include <stdlib.h> #include <gtk/gtk.h> -#include <webkit2/webkit2.h> #include "application.h" @@ -83,9 +82,6 @@ main(int argc, char *argv[]) g_set_application_name("Marquee"); - webkit_web_context_set_favicon_database_directory( - webkit_web_context_get_default(), NULL); - application = mq_application_new(opt_profile, opt_private); mq_application_add_window(application, opt_uris); |