1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00
transmission/gtk/ui/gtk4/TorrentListItemCompact.ui

80 lines
2.9 KiB
Text
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="GtkListItem">
<property name="child">
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="spacing">3</property>
<binding name="css-classes">
<closure type="GStrv" function="gtr_strv_join">
<lookup name="css-classes" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
<constant type="GStrv">tr-list-item&#xA;tr-compact</constant>
</closure>
</binding>
<binding name="sensitive">
<lookup name="sensitive" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
<child>
<object class="GtkImage">
<property name="pixel-size">16</property>
<property name="valign">0.5</property>
<property name="vexpand">1</property>
<binding name="gicon">
<lookup name="icon" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="ellipsize">end</property>
<property name="xalign">0</property>
<property name="valign">0.5</property>
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<binding name="label">
<lookup name="name" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="valign">0.5</property>
<property name="xalign">0</property>
<property name="vexpand">1</property>
<binding name="label">
<lookup name="short-status" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
<style>
<class name="tr-small"/>
<class name="tr-status"/>
</style>
</object>
</child>
<child>
<object class="GtkProgressBar">
<property name="show-text">1</property>
<property name="valign">0.5</property>
<property name="vexpand">1</property>
<binding name="fraction">
<lookup name="percent-done" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
</object>
</child>
</object>
</property>
</template>
</interface>