[libhandy] demo: Add examples with a prefix widget for expander rows
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] demo: Add examples with a prefix widget for expander rows
- Date: Thu, 2 Jul 2020 07:24:26 +0000 (UTC)
commit 5062df0fcf713f3578ce6d8abab90aaf84cfae39
Author: vanadiae <vanadiae35 gmail com>
Date: Fri Jun 26 19:19:37 2020 +0200
demo: Add examples with a prefix widget for expander rows
To be able to see how it looks like easily.
examples/hdy-demo-window.ui | 67 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
---
diff --git a/examples/hdy-demo-window.ui b/examples/hdy-demo-window.ui
index b1a4fa9b..2307b9b7 100644
--- a/examples/hdy-demo-window.ui
+++ b/examples/hdy-demo-window.ui
@@ -1363,6 +1363,73 @@
</child>
</object>
</child>
+ <child>
+ <object class="HdyExpanderRow">
+ <property name="title" translatable="yes">Expander row with a
prefix</property>
+ <property name="visible">True</property>
+ <child type="prefix">
+ <object class="GtkButton">
+ <property name="visible">True</property>
+ <property name="valign">center</property>
+ <style>
+ <class name="list-button"/>
+ </style>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="icon-name">system-shutdown-symbolic</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="HdyActionRow">
+ <property name="title" translatable="yes">A nested row</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="HdyActionRow">
+ <property name="title" translatable="yes">Another nested
row</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="HdyExpanderRow">
+ <property name="title" translatable="yes">Expander row with a prefix and
icon</property>
+ <property name="visible">True</property>
+ <property name="icon-name">action-unavailable-symbolic</property>
+ <child type="prefix">
+ <object class="GtkButton">
+ <property name="visible">True</property>
+ <property name="valign">center</property>
+ <style>
+ <class name="list-button"/>
+ </style>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="icon-name">system-shutdown-symbolic</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="HdyActionRow">
+ <property name="title" translatable="yes">A nested row</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="HdyActionRow">
+ <property name="title" translatable="yes">Another nested
row</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
<child>
<object class="HdyExpanderRow" id="enable_expander_row">
<property name="show_enable_switch">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]