history-box: Dynamically adjust slice list model size

The slice get's increased by 50 items if scrolled to the bottom
and reset to the initial 75 items if scrolled back to the top.

The defined threshholds make sure that the UX still feels smooth.
This commit is contained in:
Evangelos Ribeiro Tzaras
2022-07-09 13:20:34 +02:00
parent 8ae03a1321
commit a6faac2940
2 changed files with 62 additions and 7 deletions

View File

@@ -15,7 +15,7 @@
</child>
<child>
<object class="GtkScrolledWindow">
<object class="GtkScrolledWindow" id="scrolled_window">
<property name="visible">True</property>
<property name="hscrollbar-policy">never</property>
<child>