You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-09-30 21:28:55 +02:00
Added partial GTK3 support
Converted the OSRExternalPumpBrowser demo to GTK3 Converted the TinyBrowser demo to GTK3 Converted the TinyBrowser2 demo to GTK3 Moved all Lazarus demos for Linux to the Lazarus_Linux_GTK2 directory Fixed the Copy.CEF.DLLs tool thanks to fraurino
This commit is contained in:
@@ -52,7 +52,8 @@ uses
|
||||
{$IFDEF LINUX}
|
||||
{$IFDEF FPC}
|
||||
ctypes, keysym, xf86keysym, x, xlib,
|
||||
{$IFDEF LCLGTK2}gtk2, glib2, gdk2, gtk2proc, gtk2int, Gtk2Def, gdk2x, Gtk2Extra,{$ENDIF}
|
||||
{$IFDEF LCLGTK2}gtk2, glib2, gdk2, gtk2proc, gtk2int, Gtk2Def, gdk2x, Gtk2Extra,{$ENDIF}
|
||||
{$IFDEF LCLGTK3}LazGdk3, LazGtk3, LazGObject2, LazGLib2, gtk3objects, gtk3procs,{$ENDIF}
|
||||
{$ENDIF}
|
||||
{$ENDIF}
|
||||
uCEFLinuxTypes, uCEFTypes;
|
||||
@@ -64,6 +65,7 @@ function GetCefStateModifiers(state : uint32) : integer;
|
||||
function GdkEventToWindowsKeyCode(Event: PGdkEventKey) : integer;
|
||||
function GetWindowsKeyCodeWithoutLocation(key_code : integer) : integer;
|
||||
function GetControlCharacter(windows_key_code : integer; shift : boolean) : integer;
|
||||
|
||||
{$IFDEF FMX}
|
||||
type
|
||||
TXErrorHandler = function (para1:PDisplay; para2:PXErrorEvent):longint; cdecl;
|
||||
@@ -82,6 +84,11 @@ function gdk_screen_get_default:PGdkScreen; cdecl; external 'libgdk-3.so';
|
||||
function gdk_screen_get_resolution(screen:PGdkScreen):gdouble; cdecl; external 'libgdk-3.so';
|
||||
{$ENDIF}
|
||||
{$IFDEF FPC}
|
||||
{$IFDEF LCLGTK3}
|
||||
function gdk_x11_window_get_xid(window: PGdkWindow): TWindow; cdecl; external Gdk3_library;
|
||||
function gdk_x11_get_default_xdisplay: PDisplay; cdecl; external Gdk3_library;
|
||||
procedure gdk_set_allowed_backends(const backends: PGchar); cdecl; external Gdk3_library;
|
||||
{$ENDIF}
|
||||
procedure ShowX11Message(const aMessage : string);
|
||||
{$ENDIF}{$ENDIF}
|
||||
|
||||
|
Reference in New Issue
Block a user