You've already forked lazarus-ccr
* Implemented a way to pass a PGtkWidget to Gecko to draw the webpage on for Gtk2
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1349 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -53,6 +53,7 @@ uses
|
||||
SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||||
Dialogs, CallbackInterfaces, nsXPCOM, nsTypes, nsXPCOM_std19
|
||||
{$IFDEF LCLCarbon}, CarbonPrivate {$ENDIF}
|
||||
{$IFDEF LCLGtk2}, gtk2 {$ENDIF}
|
||||
{$IFDEF LCLCocoa}, CocoaAll, CocoaUtils, CocoaPrivate {$ENDIF};
|
||||
|
||||
type
|
||||
@@ -187,7 +188,9 @@ begin
|
||||
|
||||
{$IFDEF LCLGtk}Result := Handle;{$ENDIF} //Is Handle same as GTK Window?
|
||||
|
||||
{$IFDEF LCLGtk2}Result := Handle;{$ENDIF} //Is Handle same as GTK Window?
|
||||
{$IFDEF LCLGtk2}
|
||||
Result := PtrInt(PGtkWindow(GeckoChromeForm.Handle)^.bin.child);
|
||||
{$ENDIF} //Is Handle same as GTK Window?
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.InitWebBrowser;
|
||||
|
Reference in New Issue
Block a user