Files
sysprof/lib/resources/ui/sp-visualizer-view.ui
Christian Hergert 8d8c879384 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.
2016-10-03 16:08:13 -07:00

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>