[nautilus/wip/antoniof/modernize-properties-dialog: 2/17] properties-window: use AdwStatusPage for unreadable permissions




commit f738d4081f8f1a5dfe3257469e7aad453d5e8bfe
Author: Peter Eisenmann <p3732 getgoogleoff me>
Date:   Mon Nov 29 04:53:03 2021 +0100

    properties-window: use AdwStatusPage for unreadable permissions
    
    Use a GtkStack and a AdwStatusPage to indicate that permissions of the
    currently selected items could not be determined, replacing the previous
    behavior of hiding and showing partial snippets with a HIG pattern.
    
    Part of #1326

 src/nautilus-properties-window.c               |  25 +-
 src/resources/ui/nautilus-properties-window.ui | 830 +++++++++++++------------
 2 files changed, 436 insertions(+), 419 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index ee706626f..ffe99ad2f 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -144,14 +144,13 @@ struct _NautilusPropertiesWindow
 
     /* Permissions tab Widgets */
 
-    GtkWidget *permissions_box;
-    GtkWidget *permissions_grid;
+    GtkWidget *permissions_stack;
+
+    GtkWidget *unknown_permissions_page;
 
     GtkWidget *bottom_prompt_seperator;
     GtkWidget *not_the_owner_label;
 
-    GtkWidget *permission_indeterminable_label;
-
     GtkWidget *owner_value_stack;
     GtkWidget *owner_access_label;
     GtkWidget *owner_access_combo;
@@ -3402,8 +3401,7 @@ get_initial_permissions (GList *file_list)
 }
 
 static void
-create_simple_permissions (NautilusPropertiesWindow *self,
-                           GtkGrid                  *page_grid)
+create_simple_permissions (NautilusPropertiesWindow *self)
 {
     gboolean has_directory;
     gboolean has_file;
@@ -3833,8 +3831,8 @@ setup_permissions_page (NautilusPropertiesWindow *self)
             gtk_widget_show (self->bottom_prompt_seperator);
         }
 
-        gtk_widget_show (self->permissions_grid);
-        create_simple_permissions (self, GTK_GRID (self->permissions_grid));
+        gtk_stack_set_visible_child_name (GTK_STACK (self->permissions_stack), "permission-grid");
+        create_simple_permissions (self);
 
 #ifdef HAVE_SELINUX
         gtk_widget_show (self->security_context_title_label);
@@ -3871,10 +3869,10 @@ setup_permissions_page (NautilusPropertiesWindow *self)
 
             file_name = nautilus_file_get_display_name (get_target_file (self));
             prompt_text = g_strdup_printf (_("The permissions of “%s” could not be determined."), file_name);
-            gtk_label_set_text (GTK_LABEL (self->permission_indeterminable_label), prompt_text);
+            adw_status_page_set_description (ADW_STATUS_PAGE (self->unknown_permissions_page), prompt_text);
         }
 
-        gtk_widget_show (self->permission_indeterminable_label);
+        gtk_stack_set_visible_child_name (GTK_STACK (self->permissions_stack), "permission-indeterminable");
     }
 }
 
@@ -4457,7 +4455,7 @@ create_properties_window (StartupData *startup_data)
     if (should_show_permissions (window))
     {
         setup_permissions_page (window);
-        gtk_widget_show (window->permissions_box);
+        gtk_widget_show (window->permissions_stack);
     }
 
     if (should_show_open_with (window))
@@ -5036,11 +5034,10 @@ nautilus_properties_window_class_init (NautilusPropertiesWindowClass *klass)
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, free_value);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, total_capacity_value);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, file_system_value);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, permissions_box);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, permissions_grid);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, permissions_stack);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, bottom_prompt_seperator);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, not_the_owner_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, 
permission_indeterminable_label);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, unknown_permissions_page);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, owner_value_stack);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, owner_access_label);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, owner_folder_access_label);
diff --git a/src/resources/ui/nautilus-properties-window.ui b/src/resources/ui/nautilus-properties-window.ui
index 7981fcefe..13b7fd6a4 100644
--- a/src/resources/ui/nautilus-properties-window.ui
+++ b/src/resources/ui/nautilus-properties-window.ui
@@ -609,436 +609,456 @@
               <object class="GtkNotebookPage">
                 <property name="tab_expand">True</property>
                 <property name="child">
-                  <object class="GtkBox" id="permissions_box">
-                    <property name="visible">False</property>
+                  <object class="GtkStack" id="permissions_stack">
+                    <property name="visible">True</property>
                     <property name="margin-top">18</property>
                     <property name="margin-bottom">18</property>
                     <property name="margin-start">18</property>
                     <property name="margin-end">18</property>
-                    <property name="orientation">vertical</property>
-                    <child>
-                      <object class="GtkLabel" id="not_the_owner_label">
-                        <property name="visible">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">1</property>
-                        <property name="max_width_chars">40</property>
-                      </object>
-                    </child>
-                    <child>
-                      <object class="GtkSeparator" id="bottom_prompt_seperator">
-                        <property name="visible">False</property>
-                        <property name="margin-top">12</property>
-                        <property name="margin-bottom">12</property>
-                      </object>
-                    </child>
                     <child>
-                      <object class="GtkLabel" id="permission_indeterminable_label">
-                        <property name="visible">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">1</property>
-                        <property name="max_width_chars">40</property>
+                      <object class="GtkStackPage">
+                        <property name="name">permission-indeterminable</property>
+                        <property name="child">
+                          <object class="AdwStatusPage" id="unknown_permissions_page">
+                            <property name="icon-name">dialog-error-symbolic</property>
+                            <property name="title" translatable="yes">Unknown Permissions</property>
+                            <property name="description" translatable="yes">The permissions of the selected 
files could not be determined.</property>
+                          </object>
+                        </property>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkGrid" id="permissions_grid">
-                        <property name="visible">False</property>
-                        <property name="halign">center</property>
-                        <property name="vexpand">True</property>
-                        <property name="orientation">vertical</property>
-                        <property name="row_spacing">6</property>
-                        <property name="column_spacing">12</property>
-                        <child>
-                          <object class="GtkLabel" id="owner_label">
-                            <property name="label" translatable="yes">_Owner</property>
-                            <property name="use_underline">True</property>
-                            <property name="mnemonic_widget">owner_combo_box</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">0</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkStack" id="owner_value_stack">
+                      <object class="GtkStackPage">
+                        <property name="name">permission-grid</property>
+                        <property name="child">
+                          <object class="GtkBox" id="permissions_box">
+                            <property name="orientation">vertical</property>
                             <child>
-                              <object class="GtkStackPage">
-                                <property name="name">combo_box</property>
-                                <property name="title">page0</property>
-                                <property name="child">
-                                  <object class="GtkComboBox" id="owner_combo_box">
-                                    <property name="halign">start</property>
-                                  </object>
-                                </property>
+                              <object class="GtkLabel" id="not_the_owner_label">
+                                <property name="visible">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">1</property>
+                                <property name="max_width_chars">40</property>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkStackPage">
-                                <property name="name">label</property>
-                                <property name="title">page0</property>
-                                <property name="child">
-                                  <object class="GtkLabel" id="owner_value_label">
-                                    <property name="selectable">True</property>
-                                    <property name="xalign">0</property>
-                                  </object>
-                                </property>
+                              <object class="GtkSeparator" id="bottom_prompt_seperator">
+                                <property name="visible">False</property>
+                                <property name="margin-top">12</property>
+                                <property name="margin-bottom">12</property>
                               </object>
                             </child>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">0</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="owner_access_label">
-                            <property name="visible">False</property>
-                            <property name="label" translatable="yes">Access</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">1</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="owner_folder_access_label">
-                            <property name="visible">False</property>
-                            <property name="label" translatable="yes">Folder access</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">2</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="owner_file_access_label">
-                            <property name="visible">False</property>
-                            <property name="label" translatable="yes">File access</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">3</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkComboBox" id="owner_access_combo">
-                            <property name="visible">False</property>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">1</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkComboBox" id="owner_folder_access_combo">
-                            <property name="visible">False</property>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">2</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkComboBox" id="owner_file_access_combo">
-                            <property name="visible">False</property>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">3</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="group_label">
-                            <property name="margin_top">12</property>
-                            <property name="label" translatable="yes">_Group</property>
-                            <property name="use_underline">True</property>
-                            <property name="mnemonic_widget">group_combo_box</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">5</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkStack" id="group_value_stack">
                             <child>
-                              <object class="GtkStackPage">
-                                <property name="name">combo_box</property>
-                                <property name="title">page0</property>
-                                <property name="child">
-                                  <object class="GtkComboBoxText" id="group_combo_box">
-                                    <property name="halign">start</property>
-                                    <property name="margin_top">12</property>
-                                  </object>
-                                </property>
+                              <object class="GtkLabel" id="permission_indeterminable_label">
+                                <property name="visible">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">1</property>
+                                <property name="max_width_chars">40</property>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkStackPage">
-                                <property name="name">label</property>
-                                <property name="title">page1</property>
-                                <property name="child">
-                                  <object class="GtkLabel" id="group_value_label">
+                              <object class="GtkGrid">
+                                <property name="halign">center</property>
+                                <property name="vexpand">True</property>
+                                <property name="orientation">vertical</property>
+                                <property name="row_spacing">6</property>
+                                <property name="column_spacing">12</property>
+                                <child>
+                                  <object class="GtkLabel" id="owner_label">
+                                    <property name="label" translatable="yes">_Owner</property>
+                                    <property name="use_underline">True</property>
+                                    <property name="mnemonic_widget">owner_combo_box</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">0</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkStack" id="owner_value_stack">
+                                    <child>
+                                      <object class="GtkStackPage">
+                                        <property name="name">combo_box</property>
+                                        <property name="title">page0</property>
+                                        <property name="child">
+                                          <object class="GtkComboBox" id="owner_combo_box">
+                                            <property name="halign">start</property>
+                                          </object>
+                                        </property>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkStackPage">
+                                        <property name="name">label</property>
+                                        <property name="title">page0</property>
+                                        <property name="child">
+                                          <object class="GtkLabel" id="owner_value_label">
+                                            <property name="selectable">True</property>
+                                            <property name="xalign">0</property>
+                                          </object>
+                                        </property>
+                                      </object>
+                                    </child>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">0</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="owner_access_label">
+                                    <property name="visible">False</property>
+                                    <property name="label" translatable="yes">Access</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">1</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="owner_folder_access_label">
+                                    <property name="visible">False</property>
+                                    <property name="label" translatable="yes">Folder access</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">2</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="owner_file_access_label">
+                                    <property name="visible">False</property>
+                                    <property name="label" translatable="yes">File access</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">3</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkComboBox" id="owner_access_combo">
+                                    <property name="visible">False</property>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">1</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkComboBox" id="owner_folder_access_combo">
+                                    <property name="visible">False</property>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">2</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkComboBox" id="owner_file_access_combo">
+                                    <property name="visible">False</property>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">3</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="group_label">
+                                    <property name="margin_top">12</property>
+                                    <property name="label" translatable="yes">_Group</property>
+                                    <property name="use_underline">True</property>
+                                    <property name="mnemonic_widget">group_combo_box</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">5</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkStack" id="group_value_stack">
+                                    <child>
+                                      <object class="GtkStackPage">
+                                        <property name="name">combo_box</property>
+                                        <property name="title">page0</property>
+                                        <property name="child">
+                                          <object class="GtkComboBoxText" id="group_combo_box">
+                                            <property name="halign">start</property>
+                                            <property name="margin_top">12</property>
+                                          </object>
+                                        </property>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkStackPage">
+                                        <property name="name">label</property>
+                                        <property name="title">page1</property>
+                                        <property name="child">
+                                          <object class="GtkLabel" id="group_value_label">
+                                            <property name="margin_top">12</property>
+                                            <property name="selectable">True</property>
+                                            <property name="xalign">0</property>
+                                          </object>
+                                        </property>
+                                      </object>
+                                    </child>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">5</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="group_access_label">
+                                    <property name="visible">False</property>
+                                    <property name="label" translatable="yes">Access</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">6</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="group_folder_access_label">
+                                    <property name="visible">False</property>
+                                    <property name="label" translatable="yes">Folder access</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">7</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="group_file_access_label">
+                                    <property name="visible">False</property>
+                                    <property name="label" translatable="yes">File access</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">8</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkComboBox" id="group_access_combo">
+                                    <property name="visible">False</property>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">6</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkComboBox" id="group_folder_access_combo">
+                                    <property name="visible">False</property>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">7</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkComboBox" id="group_file_access_combo">
+                                    <property name="visible">False</property>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">8</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="others_label">
+                                    <property name="margin_top">12</property>
+                                    <property name="label" translatable="yes">Others</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">10</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="others_access_label">
+                                    <property name="visible">False</property>
+                                    <property name="label" translatable="yes">Access</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">11</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="others_folder_access_label">
+                                    <property name="visible">False</property>
+                                    <property name="label" translatable="yes">Folder access</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">12</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="others_file_access_label">
+                                    <property name="visible">False</property>
+                                    <property name="label" translatable="yes">File access</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">13</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkComboBox" id="others_access_combo">
+                                    <property name="visible">False</property>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">11</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkComboBox" id="others_folder_access_combo">
+                                    <property name="visible">False</property>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">12</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkComboBox" id="others_file_access_combo">
+                                    <property name="visible">False</property>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">13</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="execute_label">
+                                    <property name="visible">False</property>
+                                    <property name="margin_top">12</property>
+                                    <property name="label" translatable="yes">Execute</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">15</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="security_context_title_label">
+                                    <property name="visible">False</property>
+                                    <property name="margin_top">12</property>
+                                    <property name="label" translatable="yes">Security context</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">17</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkLabel" id="security_context_value_label">
+                                    <property name="visible">False</property>
                                     <property name="margin_top">12</property>
                                     <property name="selectable">True</property>
+                                    <property name="max_width_chars">24</property>
                                     <property name="xalign">0</property>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">17</property>
+                                    </layout>
                                   </object>
-                                </property>
-                              </object>
-                            </child>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">5</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="group_access_label">
-                            <property name="visible">False</property>
-                            <property name="label" translatable="yes">Access</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">6</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="group_folder_access_label">
-                            <property name="visible">False</property>
-                            <property name="label" translatable="yes">Folder access</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">7</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="group_file_access_label">
-                            <property name="visible">False</property>
-                            <property name="label" translatable="yes">File access</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">8</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkComboBox" id="group_access_combo">
-                            <property name="visible">False</property>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">6</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkComboBox" id="group_folder_access_combo">
-                            <property name="visible">False</property>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">7</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkComboBox" id="group_file_access_combo">
-                            <property name="visible">False</property>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">8</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="others_label">
-                            <property name="margin_top">12</property>
-                            <property name="label" translatable="yes">Others</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">10</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="others_access_label">
-                            <property name="visible">False</property>
-                            <property name="label" translatable="yes">Access</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">11</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="others_folder_access_label">
-                            <property name="visible">False</property>
-                            <property name="label" translatable="yes">Folder access</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">12</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="others_file_access_label">
-                            <property name="visible">False</property>
-                            <property name="label" translatable="yes">File access</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">13</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkComboBox" id="others_access_combo">
-                            <property name="visible">False</property>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">11</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkComboBox" id="others_folder_access_combo">
-                            <property name="visible">False</property>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">12</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkComboBox" id="others_file_access_combo">
-                            <property name="visible">False</property>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">13</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="execute_label">
-                            <property name="visible">False</property>
-                            <property name="margin_top">12</property>
-                            <property name="label" translatable="yes">Execute</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">15</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="security_context_title_label">
-                            <property name="visible">False</property>
-                            <property name="margin_top">12</property>
-                            <property name="label" translatable="yes">Security context</property>
-                            <property name="xalign">1</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">17</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="security_context_value_label">
-                            <property name="visible">False</property>
-                            <property name="margin_top">12</property>
-                            <property name="selectable">True</property>
-                            <property name="max_width_chars">24</property>
-                            <property name="xalign">0</property>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">17</property>
-                            </layout>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkBox" id="change_permissions_button_box">
-                            <property name="visible">False</property>
-                            <property name="margin_top">12</property>
-                            <child>
-                              <object class="GtkButton" id="change_permissions_button">
-                                <property name="label" translatable="yes">Change Permissions for Enclosed 
Files…</property>
-                                <property name="focusable">True</property>
-                                <property name="receives_default">True</property>
+                                </child>
+                                <child>
+                                  <object class="GtkBox" id="change_permissions_button_box">
+                                    <property name="visible">False</property>
+                                    <property name="margin_top">12</property>
+                                    <child>
+                                      <object class="GtkButton" id="change_permissions_button">
+                                        <property name="label" translatable="yes">Change Permissions for 
Enclosed Files…</property>
+                                        <property name="focusable">True</property>
+                                        <property name="receives_default">True</property>
+                                      </object>
+                                    </child>
+                                    <layout>
+                                      <property name="column">0</property>
+                                      <property name="row">19</property>
+                                      <property name="column-span">2</property>
+                                    </layout>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkCheckButton" id="execute_checkbox">
+                                    <property name="visible">False</property>
+                                    <property name="label" translatable="yes">Allow _executing file as 
program</property>
+                                    <property name="use_underline">True</property>
+                                    <property name="focusable">True</property>
+                                    <property name="margin_top">12</property>
+                                    <layout>
+                                      <property name="column">1</property>
+                                      <property name="row">15</property>
+                                    </layout>
+                                  </object>
+                                </child>
                               </object>
                             </child>
-                            <layout>
-                              <property name="column">0</property>
-                              <property name="row">19</property>
-                              <property name="column-span">2</property>
-                            </layout>
                           </object>
-                        </child>
-                        <child>
-                          <object class="GtkCheckButton" id="execute_checkbox">
-                            <property name="visible">False</property>
-                            <property name="label" translatable="yes">Allow _executing file as 
program</property>
-                            <property name="use_underline">True</property>
-                            <property name="focusable">True</property>
-                            <property name="margin_top">12</property>
-                            <layout>
-                              <property name="column">1</property>
-                              <property name="row">15</property>
-                            </layout>
-                          </object>
-                        </child>
+                        </property>
                       </object>
                     </child>
                   </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]