From e7a72f9e188930149f46b0994a005dfefa803dfc Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 20 Feb 2010 11:45:29 +0200 Subject: Change 'Enable Java' setting to 'Enable Plugins' There's really no way to completely disable Java support alone, and I think enabling/disabling plugins in general is much more useful. --- data/epiphany.schemas.in | 6 +++--- data/glade/prefs-dialog.ui | 4 ++-- embed/ephy-embed-prefs.c | 5 ++++- embed/ephy-embed-prefs.h | 2 +- src/prefs-dialog.c | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/data/epiphany.schemas.in b/data/epiphany.schemas.in index 0175a6fb6..c2e5e491d 100644 --- a/data/epiphany.schemas.in +++ b/data/epiphany.schemas.in @@ -471,13 +471,13 @@ - /schemas/apps/epiphany/web/java_enabled - /apps/epiphany/web/java_enabled + /schemas/apps/epiphany/web/plugins_enabled + /apps/epiphany/web/plugins_enabled epiphany bool true - Enable Java + Enable Plugins diff --git a/data/glade/prefs-dialog.ui b/data/glade/prefs-dialog.ui index 2fcf87f5e..3761cef29 100644 --- a/data/glade/prefs-dialog.ui +++ b/data/glade/prefs-dialog.ui @@ -503,8 +503,8 @@ - - Enable _Java + + Enable _Plugins True True False diff --git a/embed/ephy-embed-prefs.c b/embed/ephy-embed-prefs.c index f73deaeb8..125cddeeb 100644 --- a/embed/ephy-embed-prefs.c +++ b/embed/ephy-embed-prefs.c @@ -431,7 +431,10 @@ static const PrefData webkit_pref_entries[] = webkit_pref_callback_user_agent }, { CONF_SECURITY_COOKIES_ACCEPT, "accept-policy", - webkit_pref_callback_cookie_accept_policy } + webkit_pref_callback_cookie_accept_policy }, + { CONF_SECURITY_PLUGINS_ENABLED, + "enable-plugins", + webkit_pref_callback_boolean } }; static void diff --git a/embed/ephy-embed-prefs.h b/embed/ephy-embed-prefs.h index c515eab80..b263736b5 100644 --- a/embed/ephy-embed-prefs.h +++ b/embed/ephy-embed-prefs.h @@ -31,7 +31,7 @@ #define CONF_RENDERING_USE_OWN_FONTS "/apps/epiphany/web/use_own_fonts" #define CONF_USER_CSS_ENABLED "/apps/epiphany/web/user_css_enabled" #define CONF_SECURITY_ALLOW_POPUPS "/apps/epiphany/web/allow_popups" -#define CONF_SECURITY_JAVA_ENABLED "/apps/epiphany/web/java_enabled" +#define CONF_SECURITY_PLUGINS_ENABLED "/apps/epiphany/web/plugins_enabled" #define CONF_SECURITY_JAVASCRIPT_ENABLED "/apps/epiphany/web/javascript_enabled" #define CONF_SECURITY_COOKIES_ACCEPT "/apps/epiphany/web/cookie_accept" #define CONF_LANGUAGE_AUTODETECT_ENCODING "/apps/epiphany/web/autodetect_encoding" diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 60936b2c0..6545f7cd4 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -129,7 +129,7 @@ EphyDialogProperty properties [] = /* Privacy */ { "popups_allow_checkbutton", CONF_SECURITY_ALLOW_POPUPS, PT_AUTOAPPLY, 0 }, - { "enable_java_checkbutton", CONF_SECURITY_JAVA_ENABLED, PT_AUTOAPPLY, 0 }, + { "enable_plugins_checkbutton", CONF_SECURITY_PLUGINS_ENABLED, PT_AUTOAPPLY, 0 }, { "enable_javascript_checkbutton", CONF_SECURITY_JAVASCRIPT_ENABLED, PT_AUTOAPPLY, 0 }, { "cookies_radiobutton", CONF_SECURITY_COOKIES_ACCEPT, PT_AUTOAPPLY, G_TYPE_STRING }, { "remember_passwords_checkbutton", CONF_PRIVACY_REMEMBER_PASSWORDS, PT_AUTOAPPLY, 0 }, -- cgit v1.2.3