mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
visualizer-view: add helper viewport for scrolling
We can avoid using the inline scrollbar in favor of overlay scrolling if we bridge the adjustment into the GtkViewport. This sadly requires us to subclass things to get it just right.
This commit is contained in:
@ -17,24 +17,23 @@
|
||||
<property name="visible">true</property>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
<!-- Horizontal scrolling is handled by @scrollbar -->
|
||||
<property name="hscrollbar-policy">never</property>
|
||||
<property name="visible">true</property>
|
||||
<property name="hadjustment">scroll_adjustment</property>
|
||||
<property name="propagate-natural-height">true</property>
|
||||
<property name="vexpand">true</property>
|
||||
<property name="visible">true</property>
|
||||
<child>
|
||||
<object class="SpVisualizerList" id="list">
|
||||
<object class="SpViewport">
|
||||
<property name="visible">true</property>
|
||||
<property name="hadjustment">scroll_adjustment</property>
|
||||
<child>
|
||||
<object class="SpVisualizerList" id="list">
|
||||
<property name="visible">true</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScrollbar" id="scrollbar">
|
||||
<property name="adjustment">scroll_adjustment</property>
|
||||
<property name="orientation">horizontal</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
Reference in New Issue
Block a user