sysprof: put recording pad contents in a window handle

So that it can be dragged around easier by users.
This commit is contained in:
Christian Hergert
2024-08-06 14:14:30 -07:00
parent cf298348a6
commit fd67844d8b

View File

@ -8,75 +8,79 @@
<property name="height-request">200</property>
<property name="resizable">false</property>
<property name="content">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar">
<property name="show-start-title-buttons">false</property>
<property name="show-end-title-buttons">false</property>
<property name="title-widget">
<object class="AdwWindowTitle">
<property name="title" translatable="yes">Sysprof</property>
<object class="GtkWindowHandle">
<child>
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar">
<property name="show-start-title-buttons">false</property>
<property name="show-end-title-buttons">false</property>
<property name="title-widget">
<object class="AdwWindowTitle">
<property name="title" translatable="yes">Sysprof</property>
</object>
</property>
</object>
</child>
<property name="content">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<binding name="label">
<closure type="gchararray" function="format_time">
<lookup name="duration" type="SysprofRecording">
<lookup name="recording">SysprofRecordingPad</lookup>
</lookup>
</closure>
</binding>
<attributes>
<attribute name="scale" value="4"/>
<attribute name="font-features" value="'tnum'"/>
</attributes>
</object>
</child>
<child>
<object class="GtkLabel">
<binding name="label">
<closure type="gchararray" function="format_event_count">
<lookup name="event-count" type="SysprofRecording">
<lookup name="recording">SysprofRecordingPad</lookup>
</lookup>
</closure>
</binding>
<property name="margin-bottom">18</property>
<property name="valign">start</property>
<property name="vexpand">true</property>
<style>
<class name="caption"/>
</style>
<attributes>
<attribute name="font-features" value="'tnum'"/>
</attributes>
</object>
</child>
<child>
<object class="GtkBox">
<style>
<class name="response-area"/>
</style>
<child>
<object class="GtkButton" id="stop_button">
<property name="hexpand">true</property>
<property name="label" translatable="yes">Stop Recording</property>
<property name="action-name">window.close</property>
<style>
<class name="destructive-action"/>
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</child>
<property name="content">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<binding name="label">
<closure type="gchararray" function="format_time">
<lookup name="duration" type="SysprofRecording">
<lookup name="recording">SysprofRecordingPad</lookup>
</lookup>
</closure>
</binding>
<attributes>
<attribute name="scale" value="4"/>
<attribute name="font-features" value="'tnum'"/>
</attributes>
</object>
</child>
<child>
<object class="GtkLabel">
<binding name="label">
<closure type="gchararray" function="format_event_count">
<lookup name="event-count" type="SysprofRecording">
<lookup name="recording">SysprofRecordingPad</lookup>
</lookup>
</closure>
</binding>
<property name="margin-bottom">18</property>
<property name="valign">start</property>
<property name="vexpand">true</property>
<style>
<class name="caption"/>
</style>
<attributes>
<attribute name="font-features" value="'tnum'"/>
</attributes>
</object>
</child>
<child>
<object class="GtkBox">
<style>
<class name="response-area"/>
</style>
<child>
<object class="GtkButton" id="stop_button">
<property name="hexpand">true</property>
<property name="label" translatable="yes">Stop Recording</property>
<property name="action-name">window.close</property>
<style>
<class name="destructive-action"/>
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</template>