Commit a0bce3c0 authored by Felipe Borges's avatar Felipe Borges 👣

icon, list-view: Wrap views in widgets that draw backgrounds

GtkViewPort and GtkScrolledWindow won't draw any backgrounds,
causing a black margin effect whenever the view is not filling
the whole internal area.

The problem is easily circumvented by using a widget such as
GtkBox which draws its background.

See gtk#694
parent 6f63b03c
Pipeline #10589 passed with stage
in 3 minutes and 5 seconds
......@@ -7,7 +7,7 @@
<property name="vscrollbar-policy">automatic</property>
<child>
<object class="GtkViewport" id="viewport">
<object class="GtkBox">
<property name="visible">True</property>
<style>
<class name="view"/>
......
......@@ -7,7 +7,7 @@
<property name="vscrollbar-policy">automatic</property>
<child>
<object class="GtkViewport" id="viewport">
<object class="GtkBox">
<property name="visible">True</property>
<style>
<class name="view"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment