carousel: Port MctCarousel to GTK4

Make it an AdwBin subclass. Purge all GtkContainer usage, and expose
GTK4-inspired API to add items to the carousel, and also to control
the internal GtkRevealer.
This commit is contained in:
Georges Basile Stavracas Neto 2022-07-08 16:34:35 -03:00
parent 0fca70768a
commit b71b83f348
5 changed files with 44 additions and 37 deletions

View file

@ -3,7 +3,9 @@
<!-- Copyright © 2020 Endless, Inc. -->
<interface>
<requires lib="gtk+" version="3.12"/>
<template class="MctCarousel" parent="GtkRevealer">
<template class="MctCarousel" parent="AdwBin">
<child>
<object class="GtkRevealer" id="revealer">
<property name="transition_duration">400</property>
<property name="reveal-child">True</property>
<child>
@ -101,5 +103,7 @@
</child>
</object>
</child>
</object>
</child>
</template>
</interface>