gtk2/demos/gtk-demo/listbox.ui

333 lines
14 KiB
Plaintext
Raw Normal View History

2013-06-18 14:09:55 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="gtk30">
<!-- interface-requires gtk+ 3.10 -->
<!-- interface-requires gtkdemo 3.10 -->
<object class="GtkMenu" id="menu1">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<child>
<object class="GtkMenuItem" id="menuitem1">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label" translatable="yes">Email message</property>
2015-09-09 21:34:32 +00:00
<property name="use_underline">1</property>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child>
<object class="GtkMenuItem" id="menuitem2">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label" translatable="yes">Embed message</property>
2015-09-09 21:34:32 +00:00
<property name="use_underline">1</property>
2013-06-18 14:09:55 +00:00
</object>
</child>
</object>
<template class="GtkMessageRow" parent="GtkListBoxRow">
<child>
<object class="GtkGrid" id="grid1">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<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>
2015-09-09 21:34:32 +00:00
<property name="visible">1</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>
2013-06-18 14:09:55 +00:00
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="height">5</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box1">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="hexpand">1</property>
2013-06-18 14:09:55 +00:00
<property name="baseline_position">top</property>
<child>
<object class="GtkButton" id="button2">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
2013-06-18 14:09:55 +00:00
<property name="valign">baseline</property>
<property name="relief">none</property>
<child>
<object class="GtkLabel" id="source_name">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<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"/>
</attributes>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLabel" id="source_nick">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<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>
<packing>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="short_time_label">
2015-09-09 21:34:32 +00:00
<property name="visible">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>
<packing>
2015-09-09 21:34:32 +00:00
<property name="fill">0</property>
2013-06-18 14:09:55 +00:00
<property name="pack_type">end</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="content_label">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<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>
2013-06-18 14:09:55 +00:00
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
</packing>
</child>
<child>
<object class="GtkBox" id="resent_box">
<child>
<object class="GtkImage" id="image2">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<property name="icon_name">media-playlist-repeat</property>
</object>
</child>
<child>
<object class="GtkLabel" id="label4">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label" translatable="yes">Resent by</property>
2013-06-18 14:09:55 +00:00
</object>
<packing>
<property name="position">1</property>
</packing>
</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="visible">1</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
2013-06-18 14:09:55 +00:00
<property name="relief">none</property>
<property name="uri">http://www.gtk.org</property>
</object>
<packing>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box3">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<property name="spacing">6</property>
<child>
<object class="GtkButton" id="expand_button">
<property name="label" translatable="yes">Expand</property>
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
2013-06-18 14:09:55 +00:00
<property name="relief">none</property>
<signal name="clicked" handler="expand_clicked" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkBox" id="extra_buttons_box">
<property name="spacing">6</property>
<child>
<object class="GtkButton" id="reply-button">
<property name="label" translatable="yes">Reply</property>
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
2013-06-18 14:09:55 +00:00
<property name="relief">none</property>
</object>
</child>
<child>
<object class="GtkButton" id="reshare-button">
<property name="label" translatable="yes">Reshare</property>
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
2013-06-18 14:09:55 +00:00
<property name="relief">none</property>
<signal name="clicked" handler="reshare_clicked" swapped="yes"/>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="favorite-buttton">
<property name="label" translatable="yes">Favorite</property>
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
2013-06-18 14:09:55 +00:00
<property name="relief">none</property>
<signal name="clicked" handler="favorite_clicked" swapped="yes"/>
</object>
<packing>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkMenuButton" id="more-button">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
2013-06-18 14:09:55 +00:00
<property name="relief">none</property>
<property name="popup">menu1</property>
<child>
<object class="GtkLabel" id="label7">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label" translatable="yes">More...</property>
2013-06-18 14:09:55 +00:00
</object>
</child>
</object>
<packing>
<property name="position">3</property>
</packing>
</child>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
</packing>
</child>
<child>
<object class="GtkRevealer" id="details_revealer">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<child>
<object class="GtkBox" id="box5">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<property name="orientation">vertical</property>
<child>
<object class="GtkBox" id="box7">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<property name="margin_top">2</property>
<property name="margin_bottom">2</property>
<property name="spacing">8</property>
<child>
<object class="GtkFrame" id="frame1">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<property name="shadow_type">none</property>
<child>
<object class="GtkLabel" id="n_reshares_label">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label" translatable="0">&lt;b&gt;2&lt;/b&gt;
2013-06-18 14:09:55 +00:00
Reshares</property>
2015-09-09 21:34:32 +00:00
<property name="use_markup">1</property>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child type="label_item">
</child>
</object>
</child>
<child>
<object class="GtkFrame" id="frame2">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<property name="shadow_type">none</property>
<child>
<object class="GtkLabel" id="n_favorites_label">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label" translatable="0">&lt;b&gt;2&lt;/b&gt;
2013-06-18 14:09:55 +00:00
FAVORITES</property>
2015-09-09 21:34:32 +00:00
<property name="use_markup">1</property>
2013-06-18 14:09:55 +00:00
</object>
</child>
<child type="label_item">
</child>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box6">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-06-18 14:09:55 +00:00
<child>
<object class="GtkLabel" id="detailed_time_label">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<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>
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
2013-06-18 14:09:55 +00:00
<property name="relief">none</property>
<style>
<class name="dim-label"/>
</style>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="position">2</property>
</packing>
</child>
</object>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">4</property>
</packing>
</child>
</object>
</child>
</template>
</interface>