You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-07-02 22:26:53 +02:00
Added GlobalCEFApp.GTKVersion in Linux
Set GlobalCEFApp.GTKVersion to gtkVersion3 in TinyBrowser and TinyBrowser2 for Lazarus and GTK3 in order to avoid an initial error because the app and Chromium are trying to load diferent versions of GTK.
This commit is contained in:
@ -456,6 +456,27 @@ type
|
||||
/// Plain text.
|
||||
/// </summary>
|
||||
psBasic);
|
||||
|
||||
/// <summary>
|
||||
/// Preferred GTK version loaded by Chromium.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para><see href="https://github.com/chromium/chromium/blob/main/ui/gtk/gtk_compat.cc">See the LoadGtkImpl function in ui/gtk/gtk_compat.cc</see></para>
|
||||
/// </remarks>
|
||||
TCefGTKVersion = (
|
||||
/// <summary>
|
||||
/// Chromium tries to load the default GTK version.
|
||||
/// </summary>
|
||||
gtkVersionDefault,
|
||||
/// <summary>
|
||||
/// Chromium tries to load GTK 3 first.
|
||||
/// </summary>
|
||||
gtkVersion3,
|
||||
/// <summary>
|
||||
/// Chromium tries to load GTK 4 first.
|
||||
/// </summary>
|
||||
gtkVersion4
|
||||
);
|
||||
{$ENDIF}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user