[gnome-control-center/wip/gbsneto/keyboard-improvements: 16/16] keyboard: fix list sizes with latest Gtk+
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/gbsneto/keyboard-improvements: 16/16] keyboard: fix list sizes with latest Gtk+
- Date: Tue, 6 Sep 2016 15:08:03 +0000 (UTC)
commit e00d7d83593f6ad98cead8e0bad426f5628f49b7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Aug 31 22:20:01 2016 -0300
keyboard: fix list sizes with latest Gtk+
Gtk+ changed again the behavior of the scrolled window,
fixing the weird height issue but introducing a new issue
where the keyboard shortcut list doesn't expand horizontally
nor allocates the correct size vertically.
Fortunately, this is easily solvable with the newly introduced
GtkScrolledWindow:propagate-natural-width and -height
properties.
Fix the misbehavior by setting the new properties to sane
values.
https://bugzilla.gnome.org/show_bug.cgi?id=769314
panels/keyboard/gnome-keyboard-panel.ui | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/keyboard/gnome-keyboard-panel.ui b/panels/keyboard/gnome-keyboard-panel.ui
index 51ea9f7..f5c56ca 100644
--- a/panels/keyboard/gnome-keyboard-panel.ui
+++ b/panels/keyboard/gnome-keyboard-panel.ui
@@ -40,6 +40,9 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="hscrollbar_policy">never</property>
+ <property name="propagate_natural_width">True</property>
+ <property name="propagate_natural_height">True</property>
+ <property name="max_content_height">350</property>
<property name="shadow_type">in</property>
<property name="border_width">18</property>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]