[gnome-boxes] icon, list-view: Wrap views in widgets that draw backgrounds
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] icon, list-view: Wrap views in widgets that draw backgrounds
- Date: Fri, 4 May 2018 12:04:58 +0000 (UTC)
commit a0bce3c032802283ae86f1234bb13662ef11d32d
Author: Felipe Borges <felipeborges gnome org>
Date: Fri May 4 13:57:48 2018 +0200
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 https://gitlab.gnome.org/GNOME/gtk/issues/694
data/ui/icon-view.ui | 2 +-
data/ui/list-view.ui | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/icon-view.ui b/data/ui/icon-view.ui
index 11556693..de9237b4 100644
--- a/data/ui/icon-view.ui
+++ b/data/ui/icon-view.ui
@@ -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"/>
diff --git a/data/ui/list-view.ui b/data/ui/list-view.ui
index 47eb4a0d..131ef247 100644
--- a/data/ui/list-view.ui
+++ b/data/ui/list-view.ui
@@ -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"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]