[gtk/wip/otte/listview: 12/40] lul
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/listview: 12/40] lul
- Date: Tue, 29 Oct 2019 03:56:20 +0000 (UTC)
commit b19827d57904356cf9cd2d6bd87ddb2d6b7d0c0a
Author: Benjamin Otte <otte redhat com>
Date: Fri Oct 18 04:53:24 2019 +0200
lul
https://i.imgur.com/iKX62LU.png
demos/gtk-demo/main-listitem.ui | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/main-listitem.ui b/demos/gtk-demo/main-listitem.ui
index 6f70835802..da378c890c 100644
--- a/demos/gtk-demo/main-listitem.ui
+++ b/demos/gtk-demo/main-listitem.ui
@@ -5,9 +5,25 @@
<object class="GtkTreeExpander" id="expander">
<binding name="list-row">GtkListItem.item</binding>
<property name="child">
- <object class="GtkLabel">
- <property name="halign">start</property>
- <binding name="label">expander.item:GtkDemo.title</binding>
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="halign">start</property>
+ <binding name="label">expander.item:GtkDemo.title</binding>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <binding name="visible">!expander.list-row.expandable</binding>
+ <property name="halign">start</property>
+ <property name="use-markup">1</property>
+ <binding name="label">"<small>" + expander.item:GtkDemo.filename +
"</small>"</binding>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ </child>
</object>
</property>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]