Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux : Some GTK2 demos crash #441

Open
salvadordf opened this issue Nov 9, 2022 · 7 comments
Open

Linux : Some GTK2 demos crash #441

salvadordf opened this issue Nov 9, 2022 · 7 comments

Comments

@salvadordf
Copy link
Owner

Some GTK2 demos crash because the process is mixing GTK3 and GTK2 symbols.
They need to be converted to GTK3.

@salvadordf salvadordf added the bug label Nov 9, 2022
@sxmxta
Copy link

sxmxta commented Nov 17, 2022

How to solve this problem? Compile CEF yourself? Or change to GTK3 or GTK2 in CEF4Delphi.

@salvadordf
Copy link
Owner Author

Last time I checked it was possible to build the CEF binaries to fix this GTK3 dependency but I think the best solution is to move to a newer GTK version.

I still need to confirm this but I think I'll have to make some changes in the Lazarus components to support GTK3.

Use the previous CEF4Delphi releases if you need to embed a CEF browser in Linux now while I make some GTK3 support improvements.

@salvadordf
Copy link
Owner Author

The CEF 125 binaries changed the initialization and now more GTK2 demos work again.

@sxmxta
Copy link

sxmxta commented Nov 20, 2024

CEF 125 二进制文件更改了初始化,现在更多的 GTK2 演示可以再次工作。

Thank you for letting me know. I have already run it in the Linux GTK2 environment and it seems to be working fine so far. I'll do some more testing and then update the Energy framework.

@sxmxta
Copy link

sxmxta commented Nov 20, 2024

Under GTK2, it is still not possible to switch Chinese input methods and input Chinese

@sxmxta
Copy link

sxmxta commented Nov 20, 2024

Under GTK2, it is still not possible to switch Chinese input methods and input Chinese


Is there any good solution for switching Chinese input method and supporting Chinese input for Linux GTK2?

@salvadordf
Copy link
Owner Author

salvadordf commented Nov 20, 2024

GlobalCEFApp.AcceptLanguageList works fine in Linux.

GlobalCEFApp.Locale doesn't work in Linux and you need to use environment variables as stated in the code comments :
` /// The locale string that will be passed to WebKit. If empty the default
/// locale of "en-US" will be used. This value is ignored on Linux where
/// locale is determined using environment variable parsing with the
/// precedence order: LANGUAGE, LC_ALL, LC_MESSAGES and LANG. Also
/// configurable using the "lang" command-line switch.

Use TChromiumCore.SpellCheckerDicts to use a custom language for the spell checker. Call TChromiumCore.UpdatePreferences after setting this property.

I haven't tried the Emulation.setLocaleOverride DevTools command but perhaps it could be used in this case.

Please, use our forum for questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants