[nautilus/wip/apoos-maximus/gsoc2020] properties-window: Center permissions horizontally




commit 3fb33d905bf6dbdca8feca193486d8b72b3fa220
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]