diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2020-09-25 16:18:13 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2020-09-25 17:31:30 -0300 |
commit | 91352939939ff6692b85039290674a2f8540a68b (patch) | |
tree | 7e01fdccd830b9d4a40b04c269e582f30d0177c1 /tests | |
parent | d96519d85ce311d4f8c3b39db847adaba35f136f (diff) | |
download | gnome-todo-91352939939ff6692b85039290674a2f8540a68b.tar.gz |
widget: Don't depend on custom GTK APIs
Instead, use child widgets to make up for it.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/interactive/test-animation.c | 56 |
1 files changed, 36 insertions, 20 deletions
diff --git a/tests/interactive/test-animation.c b/tests/interactive/test-animation.c index 1fd22536..011497d9 100644 --- a/tests/interactive/test-animation.c +++ b/tests/interactive/test-animation.c @@ -51,43 +51,59 @@ static const char *ui = " <object class='GtdWidget'>" " <property name='hexpand'>true</property>" " <child>" -" <object class='GtdWidget' id='translated'>" -" <property name='css-name'>translated</property>" +" <object class='GtdWidget'>" " <property name='halign'>center</property>" " <property name='valign'>center</property>" -" <property name='width-request'>30</property>" -" <property name='height-request'>30</property>" +" <child>" +" <object class='GtdWidget' id='translated'>" +" <property name='css-name'>translated</property>" +" <property name='width-request'>30</property>" +" <property name='height-request'>30</property>" +" </object>" +" </child>" " </object>" " </child>" " <child>" -" <object class='GtdWidget' id='wiggler'>" -" <property name='css-name'>wiggler</property>" -" <property name='translation-y'>40</property>" +" <object class='GtdWidget'>" " <property name='halign'>center</property>" " <property name='valign'>start</property>" -" <property name='width-request'>300</property>" -" <property name='height-request'>40</property>" +" <child>" +" <object class='GtdWidget' id='wiggler'>" +" <property name='css-name'>wiggler</property>" +" <property name='translation-y'>40</property>" +" <property name='width-request'>300</property>" +" <property name='height-request'>40</property>" +" </object>" +" </child>" " </object>" " </child>" " <child>" -" <object class='GtdWidget' id='rotated'>" -" <property name='css-name'>rotated</property>" -" <property name='translation-y'>-80</property>" +" <object class='GtdWidget'>" " <property name='halign'>center</property>" " <property name='valign'>end</property>" -" <property name='width-request'>40</property>" -" <property name='height-request'>40</property>" +" <child>" +" <object class='GtdWidget' id='rotated'>" +" <property name='css-name'>rotated</property>" +" <property name='translation-y'>-80</property>" +" <property name='width-request'>40</property>" +" <property name='height-request'>40</property>" +" </object>" +" </child>" " </object>" " </child>" " <child>" -" <object class='GtdWidget' id='mover'>" -" <property name='css-name'>mover</property>" -" <property name='translation-x'>-200</property>" -" <property name='translation-y'>-40</property>" +" <object class='GtdWidget'>" " <property name='halign'>center</property>" " <property name='valign'>end</property>" -" <property name='width-request'>50</property>" -" <property name='height-request'>50</property>" +" <child>" +" <object class='GtdWidget' id='mover'>" +" <property name='css-name'>mover</property>" +" <property name='translation-x'>-200</property>" +" <property name='translation-y'>-40</property>" +" <property name='width-request'>50</property>" +" <property name='height-request'>50</property>" +" </object>" +" </child>" " </object>" " </child>" " </object>" |