gtk/demos/gtk-demo/listbox.ui

236 lines
9.6 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<interface domain="gtk40">
<menu id="menu1">
<section>
<item>
<attribute name="label" translatable="yes">Email message</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Embed message</attribute>
</item>
</section>
</menu>
2013-06-18 14:09:55 +00:00
<template class="GtkMessageRow" parent="GtkListBoxRow">
<child>
<object class="GtkGrid" id="grid1">
2015-09-09 21:34:32 +00:00
<property name="hexpand">1</property>
2013-06-18 14:09:55 +00:00
<child>
<object class="GtkImage" id="avatar_image">
<property name="width-request">32</property>
<property name="height-request">32</property>
2013-06-18 14:09:55 +00:00
<property name="halign">center</property>
<property name="valign">start</property>
<property name="margin-top">8</property>
<property name="margin-bottom">8</property>
<property name="margin-start">8</property>
<property name="margin-end">8</property>
<property name="icon-name">image-missing</property>
<property name="icon-size">large</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
<property name="row-span">5</property>
</layout>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child>
<object class="GtkBox" id="box1">
2015-09-09 21:34:32 +00:00
<property name="hexpand">1</property>
<property name="baseline-position">top</property>
2013-06-18 14:09:55 +00:00
<child>
<object class="GtkButton" id="button2">
<property name="receives-default">1</property>
2013-06-18 14:09:55 +00:00
<property name="valign">baseline</property>
<property name="has-frame">0</property>
2013-06-18 14:09:55 +00:00
<child>
<object class="GtkLabel" id="source_name">
<property name="valign">baseline</property>
2015-09-09 21:34:32 +00:00
<property name="label" translatable="0">Username</property>
2013-06-18 14:09:55 +00:00
<attributes>
<attribute name="weight" value="bold"></attribute>
2013-06-18 14:09:55 +00:00
</attributes>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLabel" id="source_nick">
<property name="valign">baseline</property>
2015-09-09 21:34:32 +00:00
<property name="label" translatable="0">@nick</property>
2013-06-18 14:09:55 +00:00
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel" id="short_time_label">
<property name="hexpand">1</property>
<property name="xalign">1</property>
2013-06-18 14:09:55 +00:00
<property name="valign">baseline</property>
<property name="label" translatable="yes">38m</property>
2013-06-18 14:09:55 +00:00
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<layout>
<property name="column">1</property>
<property name="row">0</property>
</layout>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child>
<object class="GtkLabel" id="content_label">
<property name="halign">start</property>
<property name="valign">start</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
2015-09-09 21:34:32 +00:00
<property name="label" translatable="0">Message</property>
<property name="wrap">1</property>
<layout>
<property name="column">1</property>
<property name="row">1</property>
</layout>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child>
<object class="GtkBox" id="resent_box">
<child>
<object class="GtkImage" id="image2">
<property name="icon-name">media-playlist-repeat</property>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child>
<object class="GtkLabel" id="label4">
<property name="label" translatable="yes">Resent by</property>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child>
<object class="GtkLinkButton" id="resent_by_button">
2015-09-09 21:34:32 +00:00
<property name="label" translatable="0">reshareer</property>
<property name="receives-default">1</property>
<property name="has-frame">0</property>
2013-06-18 14:09:55 +00:00
<property name="uri">http://www.gtk.org</property>
</object>
</child>
<layout>
<property name="column">1</property>
<property name="row">2</property>
</layout>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child>
<object class="GtkBox" id="box3">
<property name="spacing">6</property>
<child>
<object class="GtkButton" id="expand_button">
<property name="label" translatable="yes">Expand</property>
<property name="receives-default">1</property>
<property name="has-frame">0</property>
2013-06-18 14:09:55 +00:00
<signal name="clicked" handler="expand_clicked" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkBox" id="extra_buttons_box">
<property name="visible">0</property>
2013-06-18 14:09:55 +00:00
<property name="spacing">6</property>
<child>
<object class="GtkButton" id="reply-button">
<property name="label" translatable="yes">Reply</property>
<property name="receives-default">1</property>
<property name="has-frame">0</property>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child>
<object class="GtkButton" id="reshare-button">
<property name="label" translatable="yes">Reshare</property>
<property name="receives-default">1</property>
<property name="has-frame">0</property>
2013-06-18 14:09:55 +00:00
<signal name="clicked" handler="reshare_clicked" swapped="yes"/>
</object>
</child>
<child>
2020-05-28 08:00:03 +00:00
<object class="GtkButton" id="favorite-button">
<property name="label" translatable="yes">Favorite</property>
<property name="receives-default">1</property>
<property name="has-frame">0</property>
2013-06-18 14:09:55 +00:00
<signal name="clicked" handler="favorite_clicked" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkMenuButton" id="more-button">
<property name="receives-default">1</property>
<property name="menu-model">menu1</property>
<property name="has-frame">0</property>
<property name="label" translatable="yes">More...</property>
2013-06-18 14:09:55 +00:00
</object>
</child>
</object>
</child>
<layout>
<property name="column">1</property>
<property name="row">3</property>
</layout>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child>
<object class="GtkRevealer" id="details_revealer">
<child>
<object class="GtkBox" id="box5">
<property name="orientation">vertical</property>
<child>
<object class="GtkBox" id="box7">
<property name="margin-top">2</property>
<property name="margin-bottom">2</property>
2013-06-18 14:09:55 +00:00
<property name="spacing">8</property>
<child>
<object class="GtkLabel" id="n_reshares_label">
<property name="label" translatable="0">&lt;b&gt;2&lt;/b&gt;
2013-06-18 14:09:55 +00:00
Reshares</property>
<property name="use-markup">1</property>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child>
<object class="GtkLabel" id="n_favorites_label">
<property name="label" translatable="0">&lt;b&gt;2&lt;/b&gt;
2013-06-18 14:09:55 +00:00
FAVORITES</property>
<property name="use-markup">1</property>
2013-06-18 14:09:55 +00:00
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="box6">
<child>
<object class="GtkLabel" id="detailed_time_label">
2015-09-09 21:34:32 +00:00
<property name="label" translatable="0">4:25 AM - 14 Jun 13 </property>
2013-06-18 14:09:55 +00:00
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkButton" id="button5">
<property name="label" translatable="yes">Details</property>
<property name="receives-default">1</property>
<property name="has-frame">0</property>
2013-06-18 14:09:55 +00:00
<style>
<class name="dim-label"/>
</style>
</object>
</child>
</object>
</child>
</object>
</child>
<layout>
<property name="column">1</property>
<property name="row">4</property>
</layout>
2013-06-18 14:09:55 +00:00
</object>
</child>
</object>
</child>
</template>
</interface>