[gnome-control-center] mouse: Remove useless GtkGrid
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] mouse: Remove useless GtkGrid
- Date: Tue, 18 Jan 2022 09:56:38 +0000 (UTC)
commit d99269182dd373c70b219416b6c8a43ae8d99a94
Author: Christopher Davis <christopherdavis gnome org>
Date: Sat Jan 15 00:55:23 2022 -0800
mouse: Remove useless GtkGrid
Also move the margins to the box itself and remove the
horizontal margins.
panels/mouse/cc-mouse-panel.ui | 44 +++++++++++++++++-------------------------
1 file changed, 18 insertions(+), 26 deletions(-)
---
diff --git a/panels/mouse/cc-mouse-panel.ui b/panels/mouse/cc-mouse-panel.ui
index 6290917da..08dd8b3e9 100644
--- a/panels/mouse/cc-mouse-panel.ui
+++ b/panels/mouse/cc-mouse-panel.ui
@@ -21,35 +21,27 @@
<property name="subtitle" translatable="yes">Sets the order of physical buttons on
mice and touchpads.</property>
<property name="subtitle-lines">0</property>
<child>
- <object class="GtkGrid">
- <property name="row_spacing">2</property>
- <property name="column_spacing">16</property>
- <property name="margin_start">20</property>
- <property name="margin_end">20</property>
+ <object class="GtkBox" id="primary_button_box">
+ <property name="valign">center</property>
+ <property name="homogeneous">True</property>
<property name="margin_top">12</property>
<property name="margin_bottom">12</property>
+ <style>
+ <class name="linked"/>
+ </style>
+ <child>
+ <object class="GtkToggleButton" id="primary_button_left">
+ <property name="hexpand">True</property>
+ <property name="label" translatable="yes">Left</property>
+ <property name="height_request">35</property>
+ </object>
+ </child>
<child>
- <object class="GtkBox" id="primary_button_box">
- <property name="valign">center</property>
- <property name="homogeneous">True</property>
- <style>
- <class name="linked"/>
- </style>
- <child>
- <object class="GtkToggleButton" id="primary_button_left">
- <property name="hexpand">True</property>
- <property name="label" translatable="yes">Left</property>
- <property name="height_request">35</property>
- </object>
- </child>
- <child>
- <object class="GtkToggleButton" id="primary_button_right">
- <property name="hexpand">True</property>
- <property name="label" translatable="yes">Right</property>
- <property name="group">primary_button_left</property>
- <property name="height_request">35</property>
- </object>
- </child>
+ <object class="GtkToggleButton" id="primary_button_right">
+ <property name="hexpand">True</property>
+ <property name="label" translatable="yes">Right</property>
+ <property name="group">primary_button_left</property>
+ <property name="height_request">35</property>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]