summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-30 12:33:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-30 15:04:13 -0400
commit588fe5b5c120b3713178bd6f33ff0382bd632e60 (patch)
tree7c996173cfc7893c266ce36bda4c7fb2f7efabcd /demos
parentb8f44de48e2c206606f2d737c826cd0e8aba48e1 (diff)
downloadgtk+-588fe5b5c120b3713178bd6f33ff0382bd632e60.tar.gz
gtk-demo: Tweak the new constraints demo
With these somewhat random ordering changes, things get closer to working the same as the code example. Still, the guide doesn't work right.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/constraints.ui26
1 files changed, 9 insertions, 17 deletions
diff --git a/demos/gtk-demo/constraints.ui b/demos/gtk-demo/constraints.ui
index 37a58ba87f..5011caf7a5 100644
--- a/demos/gtk-demo/constraints.ui
+++ b/demos/gtk-demo/constraints.ui
@@ -12,14 +12,6 @@
nat-width="100" nat-height="10"
max-width="200" max-height="20"
strength="strong"/>
- <constraint target="button1" target-attribute="start"
- relation="ge"
- constant="0"
- strength="required"/>
- <constraint target="button1" target-attribute="top"
- relation="ge"
- constant="0"
- strength="required"/>
<constraint target="button1" target-attribute="width"
relation="le"
constant="200"
@@ -41,20 +33,20 @@
relation="eq"
source="button2" source-attribute="start"
strength="required"/>
- <constraint target="button2" target-attribute="end"
+ <constraint target="super" target-attribute="end"
relation="eq"
- source="super" source-attribute="end"
- constant="-8"
+ source="button2" source-attribute="end"
+ constant="8"
strength="required"/>
<constraint target="super" target-attribute="start"
relation="eq"
source="button3" source-attribute="start"
constant="-8"
strength="required"/>
- <constraint target="button3" target-attribute="end"
+ <constraint target="super" target-attribute="end"
relation="eq"
- source="super" source-attribute="end"
- constant="-8"
+ source="button3" source-attribute="end"
+ constant="8"
strength="required"/>
<constraint target="super" target-attribute="top"
relation="eq"
@@ -84,10 +76,10 @@
relation="eq"
source="button2" source-attribute="height"
strength="required"/>
- <constraint target="button3" target-attribute="bottom"
+ <constraint target="super" target-attribute="bottom"
relation="eq"
- source="super" source-attribute="bottom"
- constant="-8"
+ source="button3" source-attribute="bottom"
+ constant="8"
strength="required"/>
</constraints>
</object>