mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-07 12:38:30 +01:00
LCL-GTK2: Improve the earlier ListView speedup. Issue #40302, patch by wavebvg.
This commit is contained in:
parent
d8e3c3f75e
commit
dcab9e2e9c
@ -1788,7 +1788,8 @@ begin
|
||||
// Replace the ScrollingInfo with our info
|
||||
WidgetInfo := GetWidgetInfo(ScrollWidget);
|
||||
OrigScrollingData := WidgetInfo^.UserData;
|
||||
Widgets^.ScrollingData := OrigScrollingData^;
|
||||
ScrollingData := OrigScrollingData^;
|
||||
ItemCacheCount := 0;
|
||||
|
||||
WidgetInfo^.UserData := Widgets;
|
||||
|
||||
@ -1798,7 +1799,7 @@ begin
|
||||
gtk_widget_show_all(PGtkWidget(MainView));
|
||||
if not AWinControl.HandleObjectShouldBeVisible and not (csDesigning in AWinControl.ComponentState) then
|
||||
gtk_widget_hide(PGtkWidget(ScrollWidget));
|
||||
SetListCallbacks(PGtkWidget(ScrollWidget), Widgets, Widgets^.WidgetInfo);
|
||||
SetListCallbacks(PGtkWidget(ScrollWidget), Widgets, WidgetInfo);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user