[gnome-bluetooth] settings: Align the explanatory text with the listbox
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] settings: Align the explanatory text with the listbox
- Date: Wed, 23 Aug 2017 14:22:36 +0000 (UTC)
commit 78af0b0a46c1b53208e8fbbccdc3b3416237cba4
Author: Bastien Nocera <hadess hadess net>
Date: Wed Aug 23 15:28:27 2017 +0200
settings: Align the explanatory text with the listbox
The text was a couple of pixels (4 to be exact) more inside the page
than the listbox. Make the margin apply to the box containing both the
listbox and the explanatory text so that there's no minute discrepancy
in alignment.
https://bugzilla.gnome.org/show_bug.cgi?id=786611
lib/bluetooth-settings-widget.c | 2 --
lib/settings.ui | 7 +++----
2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index f4b5897..1730596 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -1513,8 +1513,6 @@ add_device_section (BluetoothSettingsWidget *self)
vbox = WID ("vbox_bluetooth");
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_widget_set_margin_start (box, 128);
- gtk_widget_set_margin_end (box, 128);
gtk_widget_set_margin_top (box, 6);
gtk_widget_set_margin_bottom (box, 24);
gtk_box_pack_start (GTK_BOX (vbox), box, TRUE, TRUE, 0);
diff --git a/lib/settings.ui b/lib/settings.ui
index 470f2ed..f4bcada 100644
--- a/lib/settings.ui
+++ b/lib/settings.ui
@@ -377,20 +377,19 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
+ <property name="margin_left">128</property>
+ <property name="margin_right">128</property>
<child>
<object class="GtkLabel" id="explanation-label">
- <property name="width_request">470</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="halign">center</property>
+ <property name="halign">start</property>
<property name="margin_top">32</property>
<property name="margin_bottom">12</property>
<property name="label">Visible as “Bastien's computer” and available for Bluetooth file
transfers. Transferred files are placed in the <a href="http://www.gnome.org">Downloads</a>
folder.</property>
<property name="use_markup">True</property>
<property name="justify">fill</property>
<property name="wrap">True</property>
- <property name="width_chars">25</property>
- <property name="max_width_chars">25</property>
</object>
<packing>
<property name="expand">False</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]