mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 01:55:56 +02:00
Gtk2: ifdefed gtk2proc CaptureMouseForWidget with GTK2_USE_OLD_CAPTURE define.
git-svn-id: trunk@27641 -
This commit is contained in:
parent
eab39ab766
commit
dffaa39719
@ -4503,6 +4503,7 @@ begin
|
||||
MouseCaptureIndex:=0;
|
||||
end;
|
||||
|
||||
{$IFDEF GTK2_USE_OLD_CAPTURE}
|
||||
procedure CaptureMouseForWidget(Widget: PGtkWidget; Owner: TMouseCaptureType);
|
||||
var
|
||||
CaptureWidget: PGtkWidget;
|
||||
@ -4543,6 +4544,7 @@ begin
|
||||
gtk_grab_add(CaptureWidget);
|
||||
end;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
function GetDefaultMouseCaptureWidget(Widget: PGtkWidget
|
||||
): PGtkWidget;
|
||||
|
@ -462,7 +462,9 @@ function TranslateGdkPointToClientArea(SourceWindow: PGdkWindow;
|
||||
function SubtractScoll(AWidget: PGtkWidget; APosition: TPoint): TPoint;
|
||||
|
||||
// mouse capturing
|
||||
{$IFDEF GTK2_USE_OLD_CAPTURE}
|
||||
procedure CaptureMouseForWidget(Widget: PGtkWidget; Owner: TMouseCaptureType);
|
||||
{$ENDIF}
|
||||
function GetDefaultMouseCaptureWidget(Widget: PGtkWidget): PGtkWidget;
|
||||
procedure ReleaseMouseCapture;
|
||||
procedure ReleaseCaptureWidget(Widget : PGtkWidget);
|
||||
|
Loading…
Reference in New Issue
Block a user