diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-01 11:52:22 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-01 11:52:22 (EDT) |
commit | 75a2885623ccc244e602e3460d8dff47a997e022 (patch) | |
tree | 56859f1fcf97a1862c32cd48083f75d307d5a4ab /src | |
parent | 14d3758eed75e0945ef9d033b23eb474a61680ac (diff) | |
download | marquee-75a2885623ccc244e602e3460d8dff47a997e022.zip marquee-75a2885623ccc244e602e3460d8dff47a997e022.tar.gz marquee-75a2885623ccc244e602e3460d8dff47a997e022.tar.bz2 |
mq_application_get_webkit_settings(): Delete function
And drop WebKitSettings setup in MqApplication.
Diffstat (limited to 'src')
-rw-r--r-- | src/application.c | 25 | ||||
-rw-r--r-- | src/application.h | 3 |
2 files changed, 6 insertions, 22 deletions
diff --git a/src/application.c b/src/application.c index dbd148c..8c189de 100644 --- a/src/application.c +++ b/src/application.c @@ -34,17 +34,15 @@ #include "config.h" #include "download.h" #include "view-source.h" -#include "web-settings.h" #include "window.h" struct MqApplication { - GList *windows; - GHashTable *tabs; - gint64 last_tab_id; - MqConfig *config; - WebKitSettings *settings; - gboolean marquee_mode; - gchar *resources_dir; + GList *windows; + GHashTable *tabs; + gint64 last_tab_id; + MqConfig *config; + gboolean marquee_mode; + gchar *resources_dir; }; static void @@ -52,8 +50,6 @@ set_webkit_settings(MqApplication *application) { WebKitWebContext *web_context; - application->settings = webkit_settings_new(); - web_context = webkit_web_context_get_default(); webkit_web_context_set_favicon_database_directory(web_context, NULL); webkit_web_context_set_process_model(web_context, @@ -72,9 +68,6 @@ set_webkit_settings(MqApplication *application) webkit_security_manager_register_uri_scheme_as_local( webkit_web_context_get_security_manager(web_context), "view-source"); - - mq_web_settings_connect(application->config, application->settings, - web_context); } static void @@ -231,12 +224,6 @@ mq_application_get_config(MqApplication *application) return application->config; } -WebKitSettings * -mq_application_get_webkit_settings(MqApplication *application) -{ - return application->settings; -} - MqWindow * mq_application_add_window(MqApplication *application, const gchar **uris) { diff --git a/src/application.h b/src/application.h index b278a7f..506d1f5 100644 --- a/src/application.h +++ b/src/application.h @@ -43,9 +43,6 @@ mq_application_quit(MqApplication *application, GtkWindow *parent); MqConfig * mq_application_get_config(MqApplication *application); -WebKitSettings * -mq_application_get_webkit_settings(MqApplication *application); - MqWindow * mq_application_add_window(MqApplication *application, const gchar **uris); |