Gtk2: ifdefed gtk2proc CaptureMouseForWidget with GTK2_USE_OLD_CAPTURE define.

git-svn-id: trunk@27641 -
This commit is contained in:
zeljko 2010-10-10 18:02:43 +00:00
parent eab39ab766
commit dffaa39719
2 changed files with 4 additions and 0 deletions

View File

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

View File

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