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




commit f8eac5520da508c8f6ad89b670eafee95c527c10
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 e52704812..da17ef42f 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]