carousel: Cleanup overlays

There are overlays inside overlays and that is not playing well
with event delivery - the main box is eating away clicks from the
userlist avatars.

Remove all that, and the extra overlays, and just leave one simple
overlay handling the whole widgetry.
This commit is contained in:
Georges Basile Stavracas Neto 2022-07-12 17:42:18 -03:00
parent 1d20fc50c9
commit 3656cffcc0
1 changed files with 52 additions and 56 deletions

View File

@ -25,18 +25,14 @@
</object>
</child>
<child type="overlay">
<object class="GtkOverlay">
<child>
<object class="GtkBox">
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
<object class="GtkButton" id="go_back_button">
<property name="visible">False</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<child>
<object class="GtkButton" id="go_back_button">
<property name="visible">False</property>
<property name="valign">center</property>
<property name="icon_name">go-previous-symbolic</property>
<accessibility>
<property name="label" translatable="yes">Previous Page</property>
@ -47,10 +43,14 @@
<signal name="clicked" handler="mct_carousel_goto_previous_page" object="MctCarousel" swapped="no"/>
</object>
</child>
<child>
<child type="overlay">
<object class="GtkButton" id="go_next_button">
<property name="valign">center</property>
<property name="halign">end</property>
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="hexpand">True</property>
<property name="icon_name">go-next-symbolic</property>
<accessibility>
@ -62,8 +62,6 @@
<signal name="clicked" handler="mct_carousel_goto_next_page" object="MctCarousel" swapped="no"/>
</object>
</child>
</object>
</child>
<child type="overlay">
<object class="GtkBox">
<property name="can-focus">False</property>
@ -97,7 +95,5 @@
</child>
</object>
</child>
</object>
</child>
</template>
</interface>