[nautilus/wip/apoos-maximus/gsoc2020] properties-window: Center permissions horizontally
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/apoos-maximus/gsoc2020] properties-window: Center permissions horizontally
- Date: Sun, 2 Aug 2020 18:04:49 +0000 (UTC)
commit b750e2269c19e137c98a0febe5c1f2c9586020fb
Author: António Fernandes <antoniof gnome org>
Date: Sun Aug 2 18:55:41 2020 +0100
properties-window: Center permissions horizontally
If the window grows larger, the permissions look pushed to the left.
Same problem with the "Change permissions..." dialog, which is wider
by default due to a long window title.
So, in both cases, let's center the contents.
src/resources/ui/nautilus-file-properties-change-permissions.ui | 1 +
src/resources/ui/nautilus-properties-window.ui | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/src/resources/ui/nautilus-file-properties-change-permissions.ui
b/src/resources/ui/nautilus-file-properties-change-permissions.ui
index d8e59e88f..cde24711a 100644
--- a/src/resources/ui/nautilus-file-properties-change-permissions.ui
+++ b/src/resources/ui/nautilus-file-properties-change-permissions.ui
@@ -30,6 +30,7 @@
<object class="GtkGrid" id="change_permissions_grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="halign">center</property>
<property name="border_width">6</property>
<property name="orientation">vertical</property>
<property name="row_spacing">6</property>
diff --git a/src/resources/ui/nautilus-properties-window.ui b/src/resources/ui/nautilus-properties-window.ui
index ab163b169..ee763c40b 100644
--- a/src/resources/ui/nautilus-properties-window.ui
+++ b/src/resources/ui/nautilus-properties-window.ui
@@ -735,6 +735,7 @@
<child>
<object class="GtkBox" id="permissions_box">
<property name="can_focus">False</property>
+ <property name="halign">center</property>
<property name="border_width">18</property>
<property name="orientation">vertical</property>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]