[gnome-control-center] keyboard: Use HdyClamp to expand similarly to other panels
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: Use HdyClamp to expand similarly to other panels
- Date: Sat, 19 Dec 2020 09:48:34 +0000 (UTC)
commit a89b83c9ecfecfb9d2d48dd8ae9364de41006d0d
Author: Ian Douglas Scott <idscott system76 com>
Date: Fri Jul 24 10:03:33 2020 -0700
keyboard: Use HdyClamp to expand similarly to other panels
panels/keyboard/cc-keyboard-panel.ui | 29 +++++++++++++----------------
1 file changed, 13 insertions(+), 16 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-panel.ui b/panels/keyboard/cc-keyboard-panel.ui
index b21c5fa8b..c182d0c92 100644
--- a/panels/keyboard/cc-keyboard-panel.ui
+++ b/panels/keyboard/cc-keyboard-panel.ui
@@ -13,31 +13,28 @@
<property name="can_focus">False</property>
<property name="expand">True</property>
<child>
- <object class="GtkBox">
+ <object class="GtkScrolledWindow">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
+ <property name="can_focus">True</property>
+ <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>
<child>
- <object class="GtkScrolledWindow">
+ <object class="HdyClamp">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <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="margin_top">32</property>
+ <property name="margin_bottom">32</property>
+ <property name="margin_start">12</property>
+ <property name="margin_end">12</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
- <property name="margin_top">32</property>
- <property name="margin_bottom">32</property>
- <property name="margin_left">18</property>
- <property name="margin_right">18</property>
<property name="spacing">12</property>
- <property name="halign">center</property>
+ <property name="hexpand">True</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]