mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 01:41:22 +02:00
Gtk3: reduce asserts from GtkScrollbar.
This commit is contained in:
parent
c22d81837f
commit
ec97ee173f
@ -4064,7 +4064,8 @@ var
|
||||
begin
|
||||
if AHorzPolicy <> POLICY[IsScrollbarVis] then
|
||||
ScrollWin^.set_policy(POLICY[IsScrollbarVis], AVertPolicy);
|
||||
if Gtk3WidgetSet.OverlayScrolling and ScrollBar^.get_visible and
|
||||
if Gtk3WidgetSet.OverlayScrolling and Gtk3IsWidget(Scrollbar) and
|
||||
ScrollBar^.get_visible and
|
||||
Gtk3IsGdkWindow(ScrollBar^.window) then
|
||||
begin
|
||||
ScrollBar^.set_can_focus(False);
|
||||
@ -4077,7 +4078,8 @@ var
|
||||
begin
|
||||
if AVertPolicy <> POLICY[IsScrollbarVis] then
|
||||
ScrollWin^.set_policy(AHorzPolicy, POLICY[IsScrollbarVis]);
|
||||
if Gtk3WidgetSet.OverlayScrolling and ScrollBar^.get_visible and
|
||||
if Gtk3WidgetSet.OverlayScrolling and Gtk3IsWidget(Scrollbar) and
|
||||
ScrollBar^.get_visible and
|
||||
Gtk3IsGdkWindow(ScrollBar^.window) then
|
||||
begin
|
||||
ScrollBar^.set_can_focus(False);
|
||||
|
Loading…
Reference in New Issue
Block a user