From 98ad801a50d8a7f470678bdb86f9eb57dd009ee5 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Thu, 2 Feb 2012 11:47:34 -0800 Subject: Allow toggling WebGL as a runtime GSettings switch If WebGL is enabled in WebKitGTK+, this new GSettings switch disables and enables WebGL settings at runtime. WebGL is disabled by default currently because Epiphany may use Clutter in the future. --- embed/ephy-embed-prefs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'embed') diff --git a/embed/ephy-embed-prefs.c b/embed/ephy-embed-prefs.c index 4f9b3686b..b1073e385 100644 --- a/embed/ephy-embed-prefs.c +++ b/embed/ephy-embed-prefs.c @@ -529,6 +529,10 @@ ephy_embed_prefs_init (void) EPHY_PREFS_WEB_DEFAULT_ENCODING, webkit_settings, "default-encoding", G_SETTINGS_BIND_GET); + g_settings_bind (EPHY_SETTINGS_WEB, + EPHY_PREFS_WEB_ENABLE_WEBGL, + webkit_settings, "enable-webgl", + G_SETTINGS_BIND_GET); } void -- cgit v1.2.3