[gnome-control-center/wip/gbsneto/keyboard-improvements: 16/16] keyboard: fix list sizes with latest Gtk+



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]