1
0
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:
Salvador Díaz Fau
2025-04-25 16:51:53 +02:00
parent 232e06c8c7
commit 3904180367
5 changed files with 38 additions and 1 deletions

View File

@ -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>