[nautilus/wip/apoos-maximus/gsoc2020: 29/29] 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: 29/29] properties-window: Center permissions horizontally
- Date: Wed, 5 Aug 2020 13:48:13 +0000 (UTC)
commit 4eafdfca85999c8cbfee7d4b626f0d14a1194a44
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 | 3 +++
2 files changed, 4 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 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]