mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
we should fix our XEmbed implementation before we think about support chromium
This commit is contained in:
parent
3ff2e0537c
commit
b2e818917c
@ -565,12 +565,15 @@ NPP_GetValue(NPP instance, NPPVariable variable, void *value) {
|
|||||||
} else if (variable == NPPVpluginNeedsXEmbed) {
|
} else if (variable == NPPVpluginNeedsXEmbed) {
|
||||||
// We'll say yes if the browser supports it.
|
// We'll say yes if the browser supports it.
|
||||||
// This is necessary to support Chromium.
|
// This is necessary to support Chromium.
|
||||||
NPBool supports_xembed = false;
|
//NPBool supports_xembed = false;
|
||||||
NPError err = browser->getvalue(instance, NPNVSupportsXEmbedBool, &supports_xembed);
|
//NPError err = browser->getvalue(instance, NPNVSupportsXEmbedBool, &supports_xembed);
|
||||||
if (err != NPERR_NO_ERROR) {
|
//if (err != NPERR_NO_ERROR) {
|
||||||
supports_xembed = false;
|
// supports_xembed = false;
|
||||||
}
|
//}
|
||||||
*((NPBool *)value) = supports_xembed;
|
// At the moment, setting it to true doesn't work
|
||||||
|
// at all on Linux. We'll have to fix that before
|
||||||
|
// we support Chromium, I suppose.
|
||||||
|
*((NPBool *)value) = false;
|
||||||
return NPERR_NO_ERROR;
|
return NPERR_NO_ERROR;
|
||||||
} else {
|
} else {
|
||||||
return NP_GetValue(NULL, variable, value);
|
return NP_GetValue(NULL, variable, value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user