From 85ae7a5cbb8e0ea22e149041b278bf8d031dabe9 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Thu, 2 Aug 2012 12:37:02 +0200 Subject: Settings: add a enable-webaudio setting. WebAudio support in WebKitGTK is not stable yet but it would be good to allow Epiphany users to test this feature nonetheless. The enable-webaudio gsetting is set to false by default. --- data/org.gnome.epiphany.gschema.xml | 5 +++++ embed/ephy-embed-prefs.c | 4 ++++ lib/ephy-prefs.h | 1 + 3 files changed, 10 insertions(+) diff --git a/data/org.gnome.epiphany.gschema.xml b/data/org.gnome.epiphany.gschema.xml index 1a38d9564..7437c85f4 100644 --- a/data/org.gnome.epiphany.gschema.xml +++ b/data/org.gnome.epiphany.gschema.xml @@ -179,6 +179,11 @@ Enable WebGL Whether to enable support for WebGL contexts. + + false + Enable WebAudio + Whether to enable support for WebAudio. + false Do Not Track diff --git a/embed/ephy-embed-prefs.c b/embed/ephy-embed-prefs.c index 26a45ac7f..86d9d94f3 100644 --- a/embed/ephy-embed-prefs.c +++ b/embed/ephy-embed-prefs.c @@ -674,6 +674,10 @@ ephy_embed_prefs_init (void) EPHY_PREFS_WEB_ENABLE_WEBGL, webkit_settings, "enable-webgl", G_SETTINGS_BIND_GET); + g_settings_bind (EPHY_SETTINGS_WEB, + EPHY_PREFS_WEB_ENABLE_WEBAUDIO, + webkit_settings, "enable-webaudio", + G_SETTINGS_BIND_GET); } void diff --git a/lib/ephy-prefs.h b/lib/ephy-prefs.h index 7e035decb..a5b182d50 100644 --- a/lib/ephy-prefs.h +++ b/lib/ephy-prefs.h @@ -103,6 +103,7 @@ typedef enum #define EPHY_PREFS_WEB_ENABLE_JAVASCRIPT "enable-javascript" #define EPHY_PREFS_WEB_ENABLE_SPELL_CHECKING "enable-spell-checking" #define EPHY_PREFS_WEB_ENABLE_WEBGL "enable-webgl" +#define EPHY_PREFS_WEB_ENABLE_WEBAUDIO "enable-webaudio" #define EPHY_PREFS_WEB_COOKIES_POLICY "cookies-policy" #define EPHY_PREFS_WEB_IMAGE_ANIMATION_MODE "image-animation-mode" #define EPHY_PREFS_WEB_DEFAULT_ENCODING "default-encoding" -- cgit