[gtk/wip/matthiasc/popup4: 83/94] widget-factory: Make a resizing popover
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup4: 83/94] widget-factory: Make a resizing popover
- Date: Sat, 27 Apr 2019 04:48:23 +0000 (UTC)
commit a1756f7cb04db9d83b6c608febff7056f5ccd16f
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 27 01:06:59 2019 +0000
widget-factory: Make a resizing popover
Add an expander to a popover to test how
changing sizes works with popovers.
demos/widget-factory/widget-factory.ui | 45 +++++++++++++++-------------------
1 file changed, 20 insertions(+), 25 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index d0994aad58..eae1800f30 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -3366,32 +3366,27 @@ bad things might happen.</property>
</object>
</child>
<child>
- <object class="GtkLabel" id="description_label">
- <property name="valign">start</property>
- <property name="label">Description:</property>
- <property name="xalign">1</property>
- <accessibility>
- <relation type="label-for" target="open_popover_textview"/>
- </accessibility>
- <layout>
- <property name="left-attach">0</property>
- <property name="top-attach">1</property>
- </layout>
- </object>
- </child>
- <child>
- <object class="GtkScrolledWindow">
- <property name="valign">start</property>
- <property name="shadow-type">in</property>
- <property name="min-content-height">70</property>
- <property name="max-content-height">120</property>
- <property name="min-content-width">100</property>
- <property name="max-content-width">100</property>
+ <object class="GtkExpander">
+ <child type="label">
+ <object class="GtkLabel" id="description_label">
+ <property name="label">Description</property>
+ </object>
+ </child>
<child>
- <object class="GtkTextView" id="open_popover_textview">
- <accessibility>
- <relation type="labelled-by" target="description_label"/>
- </accessibility>
+ <object class="GtkScrolledWindow">
+ <property name="valign">start</property>
+ <property name="shadow-type">in</property>
+ <property name="min-content-height">70</property>
+ <property name="max-content-height">120</property>
+ <property name="min-content-width">100</property>
+ <property name="max-content-width">100</property>
+ <child>
+ <object class="GtkTextView" id="open_popover_textview">
+ <accessibility>
+ <relation type="labelled-by" target="description_label"/>
+ </accessibility>
+ </object>
+ </child>
</object>
</child>
<layout>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]