mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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.
48 lines
1.8 KiB
XML
48 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="SpVisualizerView" parent="GtkBin">
|
|
<child>
|
|
<object class="GtkOverlay">
|
|
<property name="visible">true</property>
|
|
<child type="overlay">
|
|
<object class="SpVisualizerTicks" id="ticks">
|
|
<property name="valign">start</property>
|
|
<property name="hexpand">true</property>
|
|
<property name="visible">true</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="visible">true</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<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="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>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
<object class="GtkAdjustment" id="scroll_adjustment">
|
|
<property name="lower">0.0</property>
|
|
<property name="upper">0.0</property>
|
|
<property name="value">0.0</property>
|
|
</object>
|
|
</interface>
|