diff options
author | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-05-17 17:53:32 +0300 |
---|---|---|
committer | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-05-17 17:53:32 +0300 |
commit | 9df5b9d546f34587803eb2d408dab117cdf71c07 (patch) | |
tree | fd5a1deee9125cc9c1f681252bd36d8653cca8b1 /plugins | |
parent | abb0ccf711b86cbc65ef82611829849af2063ded (diff) |
WebKit deprecations
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/www/www_plugin.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/www/www_plugin.c b/plugins/www/www_plugin.c index 973072d2c..110bde5fd 100644 --- a/plugins/www/www_plugin.c +++ b/plugins/www/www_plugin.c @@ -506,16 +506,22 @@ static void remmina_plugin_www_init(RemminaProtocolWidget *gp) g_info("enable-webaudio enabled"); } /* enable-plugins */ +#if WEBKIT_CHECK_VERSION(2, 32, 0) +#else if (remmina_plugin_service->file_get_int(remminafile, "enable-plugins", FALSE)) { webkit_settings_set_enable_plugins(gpdata->settings, TRUE); g_info("Enable plugins"); } +#endif /* enable-webgl */ +#if WEBKIT_CHECK_VERSION(2, 32, 0) +#else if (remmina_plugin_service->file_get_int(remminafile, "enable-webgl", FALSE)) { webkit_settings_set_enable_webgl(gpdata->settings, TRUE); webkit_settings_set_enable_accelerated_2d_canvas(gpdata->settings, TRUE); g_info("enable-webgl enabled"); } +#endif if (remmina_plugin_service->file_get_int(remminafile, "ignore-tls-errors", FALSE)) { #if WEBKIT_CHECK_VERSION(2, 32, 0) @@ -912,8 +918,11 @@ static const RemminaProtocolSetting remmina_plugin_www_advanced_settings[] = { REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "enable-java", N_("Turn on Java support"), TRUE, NULL, NULL }, { REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "enable-smooth-scrolling", N_("Turn on smooth scrolling"), TRUE, NULL, NULL }, { REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "enable-spatial-navigation", N_("Turn on spatial navigation"), TRUE, NULL, NULL }, +#if WEBKIT_CHECK_VERSION(2, 32, 0) +#else { REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "enable-plugins", N_("Turn on plugin support"), TRUE, NULL, NULL }, { REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "enable-webgl", N_("Turn on WebGL support"), TRUE, NULL, NULL }, +#endif { REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "enable-webaudio", N_("Turn on HTML5 audio support"), TRUE, NULL, NULL }, { REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "ignore-tls-errors", N_("Ignore TLS errors"), TRUE, NULL, NULL }, { REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "disablepasswordstoring", N_("Forget passwords after use"), TRUE, NULL, NULL }, |