Listbox.content: Last child styled incorrectly with placeholder
If a Listbox gets the content
class the last child has rounded corners. However if one adds a placeholder this gets broken:
This is how it looks
when adding a placeholder like:
diff --git a/examples/hdy-demo-window.ui b/examples/hdy-demo-window.ui
index ca25088..01965c6 100644
--- a/examples/hdy-demo-window.ui
+++ b/examples/hdy-demo-window.ui
@@ -288,6 +288,15 @@
<style>
<class name="content"/>
</style>
+
+
+ <child type="placeholder">
+ <object class="GtkLabel">
+ <property name="label" translatable="yes">Placeholder</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+
<child>
<object class="HdyComboRow" id="leaflet_transition_row">
<property name="subtitle" translatable="yes">The type of transition to use when the leaflet adapts its size or when changing the visible child</property>
It seems as if we don't take into account that the placeholder is gtk_set_child_visible (widget, FALSE)
.
GTK4 with boxed-list
doesn't show this problem.