mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 01:49:25 +02:00
GTK3: Got rid of deprecated function call.
This commit is contained in:
parent
eafce4b0de
commit
16ce270720
@ -3220,7 +3220,6 @@ type
|
||||
PPGdkCursorType = ^PGdkCursorType;
|
||||
PGdkCursorType = ^TGdkCursorType;
|
||||
TGdkCursor = object(TGObject)
|
||||
function new(cursor_type: TGdkCursorType): PGdkCursor; cdecl; inline; static;
|
||||
function new_for_display(display: PGdkDisplay; cursor_type: TGdkCursorType): PGdkCursor; cdecl; inline; static;
|
||||
function new_from_name(display: PGdkDisplay; name: Pgchar): PGdkCursor; cdecl; inline; static;
|
||||
function new_from_pixbuf(display: PGdkDisplay; pixbuf: PGdkPixbuf; x: gint; y: gint): PGdkCursor; cdecl; inline; static;
|
||||
@ -5413,11 +5412,6 @@ begin
|
||||
LazGdk3.gdk_screen_set_resolution(@self, dpi);
|
||||
end;
|
||||
|
||||
function TGdkCursor.new(cursor_type: TGdkCursorType): PGdkCursor; cdecl;
|
||||
begin
|
||||
Result := LazGdk3.gdk_cursor_new(cursor_type);
|
||||
end;
|
||||
|
||||
function TGdkCursor.new_for_display(display: PGdkDisplay; cursor_type: TGdkCursorType): PGdkCursor; cdecl;
|
||||
begin
|
||||
Result := LazGdk3.gdk_cursor_new_for_display(display, cursor_type);
|
||||
|
@ -471,7 +471,7 @@ begin
|
||||
gdk_cur:=GDK_ARROW;
|
||||
end;
|
||||
|
||||
Fhandle:=TGdkCursor.new(gdk_cur);
|
||||
Fhandle:=TGdkCursor.new_for_display(gdk_display_get_default, gdk_cur);
|
||||
end;
|
||||
|
||||
constructor TGtk3Cursor.Create(pixbuf: PGdkPixbuf;x,y:gint);
|
||||
|
Loading…
Reference in New Issue
Block a user