summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2020-08-02 18:55:41 +0100
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2020-08-05 13:48:11 +0000
commit4eafdfca85999c8cbfee7d4b626f0d14a1194a44 (patch)
tree3e63931e9fb1b6202278d65eb9ad0c6223a19be5
parentc19b6a6d81c141df0df11efc4e8f2a7dd31eba72 (diff)
downloadnautilus-4eafdfca85999c8cbfee7d4b626f0d14a1194a44.tar.gz
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.
-rw-r--r--src/resources/ui/nautilus-file-properties-change-permissions.ui1
-rw-r--r--src/resources/ui/nautilus-properties-window.ui3
2 files changed, 4 insertions, 0 deletions
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 e52704812..97d314e7b 100644
--- a/src/resources/ui/nautilus-properties-window.ui
+++ b/src/resources/ui/nautilus-properties-window.ui
@@ -741,6 +741,7 @@
<object class="GtkLabel" id="not_the_owner_label">
<property name="can_focus">False</property>
<property name="label" translatable="yes">You are not the owner, so you cannot change these permissions.</property>
+ <property name="justify">center</property>
<property name="wrap">True</property>
<property name="max_width_chars">40</property>
</object>
@@ -767,6 +768,7 @@
<object class="GtkLabel" id="permission_indeterminable_label">
<property name="can_focus">False</property>
<property name="label" translatable="yes">The permissions of the selected file could not be determined.</property>
+ <property name="justify">center</property>
<property name="wrap">True</property>
<property name="max_width_chars">40</property>
</object>
@@ -779,6 +781,7 @@
<child>
<object class="GtkGrid" id="permissions_grid">
<property name="can_focus">False</property>
+ <property name="halign">center</property>
<property name="orientation">vertical</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>