[epiphany] ephy-about-handler: Use ephy settings to check if plugins are enabled
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-about-handler: Use ephy settings to check if plugins are enabled
- Date: Fri, 4 Jul 2014 10:32:15 +0000 (UTC)
commit 1758d1913bcd50170bf3986ad22eab20c5a103dc
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Fri Jul 4 08:50:24 2014 +0200
ephy-about-handler: Use ephy settings to check if plugins are enabled
Code is simpler and WebKitWebViewGroup will be removed soon
embed/ephy-about-handler.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/embed/ephy-about-handler.c b/embed/ephy-about-handler.c
index 39151cb..2ebbde1 100644
--- a/embed/ephy-about-handler.c
+++ b/embed/ephy-about-handler.c
@@ -25,6 +25,8 @@
#include "ephy-embed-prefs.h"
#include "ephy-file-helpers.h"
#include "ephy-history-service.h"
+#include "ephy-prefs.h"
+#include "ephy-settings.h"
#include "ephy-smaps.h"
#include "ephy-snapshot-service.h"
#include "ephy-web-app-utils.h"
@@ -125,13 +127,9 @@ get_plugins_cb (WebKitWebContext *web_context,
GString *data_str;
gsize data_length;
GList *plugin_list, *p;
- WebKitWebViewGroup *web_view_group;
- WebKitSettings *webkit_settings;
gboolean enabled;
- web_view_group = ephy_embed_prefs_get_web_view_group ();
- webkit_settings = webkit_web_view_group_get_settings (web_view_group);
- enabled = webkit_settings_get_enable_plugins (webkit_settings);
+ enabled = g_settings_get_boolean (EPHY_SETTINGS_WEB, EPHY_PREFS_WEB_ENABLE_PLUGINS);
data_str = g_string_new ("<html>");
g_string_append_printf (data_str, "<head><title>%s</title>"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]