[nautilus/wip/antoniof/new_open_with: 7/31] properties-window: use GtkListBox for basic entries




commit 169d2f4f8043047134dbdc2d65dd2d2436e89ad2
Author: Peter Eisenmann <p3732 getgoogleoff me>
Date:   Thu Dec 30 22:08:59 2021 +0100

    properties-window: use GtkListBox for basic entries
    
    Convert property entries in the basic tab from a grid form into
    multiple GtkListBoxes. Display name and type centered as a title.
    Timepoint entries, as well as the Trash-related entries are special
    cased, in that they are combined into a single row with labels
    arranged in a GtkBox.
    
    The icon picker and the volume pie chart remain unchanged, with only
    some placeholders used for spacing removed.
    
    Part of #1326

 src/nautilus-properties-window.c               | 150 ++---
 src/resources/ui/nautilus-properties-window.ui | 779 +++++++++++--------------
 2 files changed, 401 insertions(+), 528 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index c02b089a4..f1902e992 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -87,47 +87,34 @@ struct _NautilusPropertiesWindow
     GtkWidget *icon_button_image;
     GtkWidget *icon_chooser;
 
-    GtkLabel *name_title_label;
     GtkLabel *name_value_label;
-
-    GtkWidget *type_title_label;
     GtkWidget *type_value_label;
 
-    GtkWidget *link_target_title_label;
+    GtkWidget *link_target_row;
     GtkWidget *link_target_value_label;
-
-    GtkWidget *contents_title_label;
+    GtkWidget *size_row;
+    GtkWidget *size_value_label;
+    GtkWidget *contents_row;
     GtkWidget *contents_value_label;
     GtkWidget *contents_spinner;
     guint update_directory_contents_timeout_id;
     guint update_files_timeout_id;
-
-    GtkWidget *size_title_label;
-    GtkWidget *size_value_label;
-
-    GtkWidget *parent_folder_title_label;
+    GtkWidget *parent_folder_row;
     GtkWidget *parent_folder_value_label;
 
-    GtkWidget *original_folder_title_label;
-    GtkWidget *original_folder_value_label;
-
-    GtkWidget *trashed_on_title_label;
+    GtkWidget *trashed_list_box;
     GtkWidget *trashed_on_value_label;
+    GtkWidget *original_folder_value_label;
 
-    GtkWidget *spacer_2;
-
-    GtkWidget *accessed_title_label;
-    GtkWidget *accessed_value_label;
-
-    GtkWidget *modified_title_label;
+    GtkWidget *times_list_box;
+    GtkWidget *modified_row;
     GtkWidget *modified_value_label;
-
-    GtkWidget *created_title_label;
+    GtkWidget *created_row;
     GtkWidget *created_value_label;
+    GtkWidget *accessed_row;
+    GtkWidget *accessed_value_label;
 
-    GtkWidget *spacer_3;
-
-    GtkWidget *free_space_title_label;
+    GtkWidget *free_space_list_box;
     GtkWidget *free_space_value_label;
 
     GtkWidget *volume_widget_box;
@@ -575,8 +562,6 @@ update_name_field (NautilusPropertiesWindow *self)
         }
     }
 
-    gtk_label_set_text (self->name_title_label,
-                        ngettext ("Name", "Names", file_counter));
     gtk_label_set_text (self->name_value_label, name_str->str);
 }
 
@@ -1932,7 +1917,7 @@ should_show_location_info (NautilusPropertiesWindow *self)
 }
 
 static gboolean
-should_show_trash_orig_path (NautilusPropertiesWindow *self)
+should_show_trashed_info (NautilusPropertiesWindow *self)
 {
     GList *l;
 
@@ -1975,22 +1960,6 @@ should_show_created_date (NautilusPropertiesWindow *self)
     return !is_multi_file_window (self);
 }
 
-static gboolean
-should_show_trashed_on (NautilusPropertiesWindow *self)
-{
-    GList *l;
-
-    for (l = self->original_files; l != NULL; l = l->next)
-    {
-        if (!nautilus_file_is_in_trash (NAUTILUS_FILE (l->data)))
-        {
-            return FALSE;
-        }
-    }
-
-    return TRUE;
-}
-
 static gboolean
 should_show_link_target (NautilusPropertiesWindow *self)
 {
@@ -2315,99 +2284,74 @@ setup_basic_page (NautilusPropertiesWindow *self)
 
     if (should_show_file_type (self))
     {
-        gtk_widget_show (self->type_title_label);
         gtk_widget_show (self->type_value_label);
         add_updatable_label (self, self->type_value_label, "detailed_type");
     }
 
     if (should_show_link_target (self))
     {
-        gtk_widget_show (self->link_target_title_label);
-        gtk_widget_show (self->link_target_value_label);
+        gtk_widget_show (self->link_target_row);
         add_updatable_label (self, self->link_target_value_label, "link_target");
     }
 
     if (is_multi_file_window (self) ||
         nautilus_file_is_directory (get_target_file (self)))
     {
-        gtk_widget_show (self->contents_title_label);
-        gtk_widget_show (self->contents_value_label);
+        gtk_widget_show (self->contents_row);
         setup_contents_field (self);
     }
     else
     {
-        gtk_widget_show (self->size_title_label);
-        gtk_widget_show (self->size_value_label);
-
+        gtk_widget_show (self->size_row);
         add_updatable_label (self, self->size_value_label, "size_detail");
     }
 
     if (should_show_location_info (self))
     {
-        gtk_widget_show (self->parent_folder_title_label);
-        gtk_widget_show (self->parent_folder_value_label);
-
+        gtk_widget_show (self->parent_folder_row);
         add_updatable_label (self, self->parent_folder_value_label, "where");
     }
 
-    if (should_show_trash_orig_path (self))
+    if (should_show_trashed_info (self))
     {
-        gtk_widget_show (self->original_folder_title_label);
-        gtk_widget_show (self->original_folder_value_label);
+        gtk_widget_show (self->trashed_list_box);
         add_updatable_label (self, self->original_folder_value_label, "trash_orig_path");
-    }
-
-    if (should_show_trashed_on (self))
-    {
-        gtk_widget_show (self->trashed_on_title_label);
-        gtk_widget_show (self->trashed_on_value_label);
         add_updatable_label (self, self->trashed_on_value_label, "trashed_on_full");
     }
 
-    if (should_show_accessed_date (self)
-        || should_show_modified_date (self)
-        || should_show_created_date (self))
-    {
-        gtk_widget_show (self->spacer_2);
-    }
-
-    if (should_show_accessed_date (self))
-    {
-        gtk_widget_show (self->accessed_title_label);
-        gtk_widget_show (self->accessed_value_label);
-        add_updatable_label (self, self->accessed_value_label, "date_accessed_full");
-    }
-
     if (should_show_modified_date (self))
     {
-        gtk_widget_show (self->modified_title_label);
-        gtk_widget_show (self->modified_value_label);
+        gtk_widget_show (self->times_list_box);
+        gtk_widget_show (self->modified_row);
         add_updatable_label (self, self->modified_value_label, "date_modified_full");
     }
 
     if (should_show_created_date (self))
     {
-        gtk_widget_show (self->created_title_label);
-        gtk_widget_show (self->created_value_label);
+        gtk_widget_show (self->created_row);
+        gtk_widget_show (self->times_list_box);
         add_updatable_label (self, self->created_value_label, "date_created_full");
     }
 
+    if (should_show_accessed_date (self))
+    {
+        gtk_widget_show (self->times_list_box);
+        gtk_widget_show (self->accessed_row);
+        add_updatable_label (self, self->accessed_value_label, "date_accessed_full");
+    }
+
     if (should_show_free_space (self)
         && !should_show_volume_usage (self))
     {
-        gtk_widget_show (self->spacer_3);
-        gtk_widget_show (self->free_space_title_label);
-        gtk_widget_show (self->free_space_value_label);
+        gtk_widget_show (self->free_space_list_box);
         add_updatable_label (self, self->free_space_value_label, "free_space");
     }
 
     if (should_show_volume_usage (self))
     {
         gtk_widget_show (self->volume_widget_box);
-        gtk_widget_show (self->open_in_disks_button);
         g_signal_connect (self->open_in_disks_button, "clicked", G_CALLBACK (open_in_disks), self);
         setup_volume_usage_widget (self);
-        /*Translators: Here Disks mean the name of application GNOME Disks.*/
     }
 }
 
@@ -4924,32 +4868,28 @@ nautilus_properties_window_class_init (NautilusPropertiesWindowClass *klass)
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, icon_image);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, icon_button);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, icon_button_image);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, name_title_label);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, name_value_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, type_title_label);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, type_value_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, link_target_title_label);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, link_target_row);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, link_target_value_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, contents_title_label);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, size_row);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, size_value_label);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, contents_row);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, contents_value_label);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, contents_spinner);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, size_title_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, size_value_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, parent_folder_title_label);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, parent_folder_row);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, parent_folder_value_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, 
original_folder_title_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, 
original_folder_value_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, trashed_on_title_label);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, trashed_list_box);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, trashed_on_value_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, accessed_title_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, accessed_value_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, spacer_2);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, modified_title_label);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, 
original_folder_value_label);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, times_list_box);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, modified_row);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, modified_value_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, created_title_label);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, created_row);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, created_value_label);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, spacer_3);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, free_space_title_label);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, accessed_row);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, accessed_value_label);
+    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, free_space_list_box);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, free_space_value_label);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, volume_widget_box);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, open_in_disks_button);
diff --git a/src/resources/ui/nautilus-properties-window.ui b/src/resources/ui/nautilus-properties-window.ui
index d6ddfec96..23294caea 100644
--- a/src/resources/ui/nautilus-properties-window.ui
+++ b/src/resources/ui/nautilus-properties-window.ui
@@ -59,558 +59,491 @@
                       </object>
                     </child>
                     <child>
-                      <object class="GtkBox" id="grid_box">
+                      <object class="GtkBox">
                         <property name="orientation">vertical</property>
+                        <property name="spacing">6</property>
                         <child>
-                          <object class="GtkGrid" id="basic_grid">
-                            <property name="orientation">vertical</property>
-                            <property name="row_spacing">6</property>
-                            <property name="column_spacing">12</property>
-                            <child>
-                              <object class="GtkLabel" id="name_title_label">
-                                <property name="label" translatable="yes">Name</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>
+                          <object class="GtkLabel" id="name_value_label">
+                            <property name="selectable">True</property>
+                            <property name="ellipsize">end</property>
+                            <property name="max-width-chars">24</property>
+                            <style>
+                              <class name="title-3"/>
+                            </style>
+                          </object>
+                        </child>
+                        <child>
+                          <object class="GtkLabel" id="type_value_label">
+                            <property name="ellipsize">end</property>
+                            <property name="max-width-chars">24</property>
+                            <property name="selectable">True</property>
+                            <property name="visible">False</property>
+                            <style>
+                              <class name="dim-label"/>
+                            </style>
+                          </object>
+                        </child>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GtkListBox" id="file_data_list_box">
+                        <property name="selection-mode">none</property>
+                        <child>
+                          <object class="AdwActionRow" id="link_target_row">
+                            <property name="visible">False</property>
+                            <property name="activatable">False</property>
+                            <property name="selectable">False</property>
+                            <property name="title" translatable="yes">Link Target</property>
                             <child>
-                              <object class="GtkLabel" id="name_value_label">
+                              <object class="GtkLabel" id="link_target_value_label">
                                 <property name="hexpand">True</property>
                                 <property name="selectable">True</property>
                                 <property name="ellipsize">end</property>
-                                <property name="max_width_chars">24</property>
-                                <property name="xalign">0</property>
-                                <layout>
-                                  <property name="column">1</property>
-                                  <property name="row">0</property>
-                                </layout>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkLabel" id="type_title_label">
-                                <property name="visible">False</property>
-                                <property name="label" translatable="yes">Type</property>
+                                <property name="max-width-chars">24</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>
+                          </object>
+                        </child>
+                        <child>
+                          <object class="AdwActionRow" id="size_row">
+                            <property name="visible">False</property>
+                            <property name="activatable">False</property>
+                            <property name="selectable">False</property>
+                            <property name="title" translatable="yes">Size</property>
                             <child>
-                              <object class="GtkLabel" id="type_value_label">
-                                <property name="visible">False</property>
+                              <object class="GtkLabel" id="size_value_label">
                                 <property name="hexpand">True</property>
                                 <property name="selectable">True</property>
                                 <property name="ellipsize">end</property>
-                                <property name="max_width_chars">24</property>
-                                <property name="xalign">0</property>
-                                <layout>
-                                  <property name="column">1</property>
-                                  <property name="row">1</property>
-                                </layout>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkLabel" id="link_target_title_label">
-                                <property name="visible">False</property>
-                                <property name="label" translatable="yes">Link target</property>
+                                <property name="max-width-chars">24</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="link_target_value_label">
-                                <property name="visible">False</property>
-                                <property name="hexpand">True</property>
-                                <property name="selectable">True</property>
-                                <property name="ellipsize">end</property>
-                                <property name="max_width_chars">24</property>
-                                <property name="xalign">0</property>
-                                <layout>
-                                  <property name="column">1</property>
-                                  <property name="row">2</property>
-                                </layout>
                               </object>
                             </child>
+                          </object>
+                        </child>
+                        <child>
+                          <object class="AdwActionRow" id="contents_row">
+                            <property name="visible">False</property>
+                            <property name="activatable">False</property>
+                            <property name="selectable">False</property>
+                            <property name="title" translatable="yes">Contents</property>
                             <child>
-                              <object class="GtkLabel" id="contents_title_label">
-                                <property name="visible">False</property>
-                                <property name="valign">start</property>
-                                <property name="label" translatable="yes">Contents</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>
+                              <object class="GtkBox">
+                                <property name="spacing">12</property>
+                                <child>
+                                  <object class="GtkLabel" id="contents_value_label">
+                                    <property name="hexpand">True</property>
+                                    <property name="selectable">True</property>
+                                    <property name="ellipsize">end</property>
+                                    <property name="max-width-chars">24</property>
+                                    <property name="xalign">1</property>
+                                    <style>
+                                      <class name="dim-label"/>
+                                    </style>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkSpinner" id="contents_spinner">
+                                    <property name="visible">False</property>
+                                  </object>
+                                </child>
+                               </object>
                             </child>
+                          </object>
+                        </child>
+                        <child>
+                          <object class="AdwActionRow" id="parent_folder_row">
+                            <property name="visible">False</property>
+                            <property name="activatable">False</property>
+                            <property name="selectable">False</property>
+                            <property name="title" translatable="yes">Parent Folder</property>
                             <child>
-                              <object class="GtkLabel" id="contents_value_label">
-                                <property name="visible">False</property>
-                                <property name="wrap">True</property>
+                              <object class="GtkLabel" id="parent_folder_value_label">
+                                <property name="hexpand">True</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">3</property>
-                                </layout>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkSpinner" id="contents_spinner">
-                                <property name="visible">False</property>
-                                <layout>
-                                  <property name="column">2</property>
-                                  <property name="row">3</property>
-                                </layout>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkLabel" id="size_title_label">
-                                <property name="visible">False</property>
-                                <property name="label" translatable="yes">Size</property>
+                                <property name="ellipsize">end</property>
+                                <property name="max-width-chars">24</property>
                                 <property name="xalign">1</property>
                                 <style>
                                   <class name="dim-label"/>
                                 </style>
-                                <layout>
-                                  <property name="column">0</property>
-                                  <property name="row">4</property>
-                                </layout>
                               </object>
                             </child>
+                          </object>
+                        </child>
+                        <style>
+                          <class name="boxed-list"/>
+                        </style>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GtkListBox" id="trashed_list_box">
+                        <property name="selection-mode">none</property>
+                        <property name="visible">False</property>
+                        <child>
+                          <object class="GtkListBoxRow">
+                            <property name="activatable">False</property>
+                            <property name="selectable">False</property>
                             <child>
-                              <object class="GtkLabel" id="size_value_label">
-                                <property name="visible">False</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">4</property>
-                                </layout>
+                              <object class="GtkBox">
+                                <property name="margin-top">12</property>
+                                <property name="margin-bottom">12</property>
+                                <property name="margin-start">12</property>
+                                <property name="margin-end">12</property>
+                                <property name="spacing">12</property>
+                                <property name="orientation">vertical</property>
+                                <child>
+                                  <object class="GtkBox">
+                                    <property name="spacing">12</property>
+                                    <child>
+                                      <object class="GtkLabel">
+                                        <property name="label" translatable="yes">Trashed on</property>
+                                        <property name="xalign">0</property>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkLabel" id="trashed_on_value_label">
+                                        <property name="hexpand">True</property>
+                                        <property name="selectable">True</property>
+                                        <property name="ellipsize">end</property>
+                                        <property name="max-width-chars">24</property>
+                                        <property name="xalign">1</property>
+                                        <style>
+                                          <class name="dim-label"/>
+                                        </style>
+                                      </object>
+                                    </child>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkBox">
+                                    <property name="spacing">12</property>
+                                    <child>
+                                      <object class="GtkLabel">
+                                        <property name="label" translatable="yes">Original Folder</property>
+                                        <property name="xalign">0</property>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkLabel" id="original_folder_value_label">
+                                        <property name="hexpand">True</property>
+                                        <property name="selectable">True</property>
+                                        <property name="ellipsize">end</property>
+                                        <property name="max-width-chars">24</property>
+                                        <property name="xalign">1</property>
+                                        <style>
+                                          <class name="dim-label"/>
+                                        </style>
+                                      </object>
+                                    </child>
+                                  </object>
+                                </child>
                               </object>
                             </child>
+                          </object>
+                        </child>
+                        <style>
+                          <class name="boxed-list"/>
+                        </style>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GtkListBox" id="times_list_box">
+                        <property name="selection-mode">none</property>
+                        <property name="visible">False</property>
+                        <child>
+                          <object class="GtkListBoxRow">
+                            <property name="activatable">False</property>
+                            <property name="selectable">False</property>
                             <child>
-                              <object class="GtkLabel" id="parent_folder_title_label">
-                                <property name="visible">False</property>
-                                <property name="label" translatable="yes">Parent folder</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 class="GtkBox">
+                                <property name="margin-top">12</property>
+                                <property name="margin-bottom">12</property>
+                                <property name="margin-start">12</property>
+                                <property name="margin-end">12</property>
+                                <property name="spacing">12</property>
+                                <property name="orientation">vertical</property>
+                                <child>
+                                  <object class="GtkBox" id="modified_row">
+                                    <property name="spacing">12</property>
+                                    <property name="visible">False</property>
+                                    <child>
+                                      <object class="GtkLabel">
+                                        <property name="label" translatable="yes">Modified</property>
+                                        <property name="xalign">0</property>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkLabel" id="modified_value_label">
+                                        <property name="hexpand">True</property>
+                                        <property name="selectable">True</property>
+                                        <property name="ellipsize">end</property>
+                                        <property name="max-width-chars">24</property>
+                                        <property name="xalign">1</property>
+                                        <style>
+                                          <class name="dim-label"/>
+                                        </style>
+                                      </object>
+                                    </child>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkBox" id="created_row">
+                                    <property name="spacing">12</property>
+                                    <property name="visible">False</property>
+                                    <child>
+                                      <object class="GtkLabel">
+                                        <property name="label" translatable="yes">Created</property>
+                                        <property name="xalign">0</property>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkLabel" id="created_value_label">
+                                        <property name="hexpand">True</property>
+                                        <property name="selectable">True</property>
+                                        <property name="ellipsize">end</property>
+                                        <property name="max-width-chars">24</property>
+                                        <property name="xalign">1</property>
+                                        <style>
+                                          <class name="dim-label"/>
+                                        </style>
+                                      </object>
+                                    </child>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkBox" id="accessed_row">
+                                    <property name="spacing">12</property>
+                                    <property name="visible">False</property>
+                                    <child>
+                                      <object class="GtkLabel">
+                                        <property name="label" translatable="yes">Accessed</property>
+                                        <property name="xalign">0</property>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkLabel" id="accessed_value_label">
+                                        <property name="hexpand">True</property>
+                                        <property name="selectable">True</property>
+                                        <property name="ellipsize">end</property>
+                                        <property name="max-width-chars">24</property>
+                                        <property name="xalign">1</property>
+                                        <style>
+                                          <class name="dim-label"/>
+                                        </style>
+                                      </object>
+                                    </child>
+                                  </object>
+                                </child>
                               </object>
                             </child>
+                          </object>
+                        </child>
+                        <style>
+                          <class name="boxed-list"/>
+                        </style>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GtkListBox" id="free_space_list_box">
+                        <property name="visible">False</property>
+                        <property name="selection-mode">none</property>
+                        <child>
+                          <object class="AdwActionRow">
+                            <property name="activatable">False</property>
+                            <property name="selectable">False</property>
+                            <property name="title" translatable="yes">Free Space</property>
                             <child>
-                              <object class="GtkLabel" id="parent_folder_value_label">
-                                <property name="visible">False</property>
+                              <object class="GtkLabel" id="free_space_value_label">
                                 <property name="hexpand">True</property>
                                 <property name="selectable">True</property>
                                 <property name="ellipsize">end</property>
-                                <property name="max_width_chars">24</property>
-                                <property name="xalign">0</property>
-                                <layout>
-                                  <property name="column">1</property>
-                                  <property name="row">6</property>
-                                </layout>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkLabel" id="created_title_label">
-                                <property name="visible">False</property>
-                                <property name="label" translatable="yes">Created</property>
+                                <property name="max-width-chars">24</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="created_value_label">
-                                <property name="visible">False</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">11</property>
-                                </layout>
                               </object>
                             </child>
+                          </object>
+                        </child>
+                        <style>
+                          <class name="boxed-list"/>
+                        </style>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GtkBox" id="volume_widget_box">
+                        <property name="visible">False</property>
+                        <property name="orientation">vertical</property>
+                        <child>
+                          <object class="GtkGrid" id="volume_grid">
+                            <property name="hexpand">False</property>
+                            <property name="margin-top">5</property>
+                            <property name="margin-bottom">5</property>
+                            <property name="margin-start">5</property>
+                            <property name="margin-end">5</property>
+                            <property name="row_spacing">10</property>
+                            <property name="column_spacing">10</property>
                             <child>
-                              <object class="GtkLabel" id="original_folder_title_label">
-                                <property name="visible">False</property>
-                                <property name="label" translatable="yes">Original folder</property>
-                                <property name="xalign">1</property>
+                              <object class="GtkDrawingArea" id="pie_chart">
+                                <property name="width_request">200</property>
+                                <property name="height_request">200</property>
                                 <style>
-                                  <class name="dim-label"/>
+                                  <class name="disk-space-display"/>
                                 </style>
                                 <layout>
                                   <property name="column">0</property>
-                                  <property name="row">12</property>
+                                  <property name="row">0</property>
+                                  <property name="row-span">5</property>
                                 </layout>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkLabel" id="original_folder_value_label">
-                                <property name="visible">False</property>
-                                <property name="hexpand">True</property>
-                                <property name="selectable">True</property>
-                                <property name="ellipsize">end</property>
-                                <property name="max_width_chars">24</property>
-                                <property name="xalign">0</property>
+                              <object class="GtkLabel" id="spacer_label">
+                                <property name="vexpand">True</property>
                                 <layout>
                                   <property name="column">1</property>
-                                  <property name="row">12</property>
+                                  <property name="row">0</property>
                                 </layout>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkLabel" id="trashed_on_title_label">
-                                <property name="visible">False</property>
-                                <property name="label" translatable="yes">Trashed on</property>
-                                <property name="xalign">1</property>
+                              <object class="GtkDrawingArea" id="used_color">
+                                <property name="width_request">20</property>
+                                <property name="height_request">20</property>
+                                <property name="halign">end</property>
                                 <style>
-                                  <class name="dim-label"/>
+                                  <class name="disk-space-display"/>
+                                  <class name="used"/>
                                 </style>
-                                <layout>
-                                  <property name="column">0</property>
-                                  <property name="row">13</property>
-                                </layout>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkLabel" id="trashed_on_value_label">
-                                <property name="visible">False</property>
-                                <property name="hexpand">True</property>
-                                <property name="selectable">True</property>
-                                <property name="ellipsize">end</property>
-                                <property name="max_width_chars">24</property>
-                                <property name="xalign">0</property>
                                 <layout>
                                   <property name="column">1</property>
-                                  <property name="row">13</property>
+                                  <property name="row">1</property>
                                 </layout>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkLabel" id="accessed_title_label">
-                                <property name="visible">False</property>
-                                <property name="label" translatable="yes">Accessed</property>
-                                <property name="xalign">1</property>
+                              <object class="GtkDrawingArea" id="free_color">
+                                <property name="width_request">20</property>
+                                <property name="height_request">20</property>
+                                <property name="halign">end</property>
+                                <property name="vexpand">False</property>
                                 <style>
-                                  <class name="dim-label"/>
+                                  <class name="disk-space-display"/>
+                                  <class name="free"/>
                                 </style>
-                                <layout>
-                                  <property name="column">0</property>
-                                  <property name="row">9</property>
-                                </layout>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkLabel" id="accessed_value_label">
-                                <property name="visible">False</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">9</property>
+                                  <property name="row">2</property>
                                 </layout>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkLabel" id="modified_title_label">
-                                <property name="visible">False</property>
-                                <property name="label" translatable="yes">Modified</property>
+                              <object class="GtkLabel">
+                                <property name="halign">end</property>
+                                <property name="label" translatable="yes">Total capacity</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="modified_value_label">
-                                <property name="visible">False</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">10</property>
+                                  <property name="row">3</property>
                                 </layout>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkLabel" id="free_space_title_label">
-                                <property name="visible">False</property>
-                                <property name="label" translatable="yes">Free space</property>
+                              <object class="GtkLabel">
+                                <property name="halign">end</property>
+                                <property name="label" translatable="yes">Filesystem type</property>
                                 <property name="xalign">1</property>
                                 <style>
                                   <class name="dim-label"/>
                                 </style>
                                 <layout>
-                                  <property name="column">0</property>
-                                  <property name="row">15</property>
+                                  <property name="column">1</property>
+                                  <property name="row">4</property>
                                 </layout>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkLabel" id="free_space_value_label">
-                                <property name="visible">False</property>
-                                <property name="selectable">True</property>
-                                <property name="max_width_chars">24</property>
-                                <property name="xalign">0</property>
+                              <object class="GtkLabel" id="total_capacity_value">
+                                <property name="halign">start</property>
+                                <property name="label">0</property>
                                 <layout>
-                                  <property name="column">1</property>
-                                  <property name="row">15</property>
+                                  <property name="column">2</property>
+                                  <property name="row">3</property>
                                 </layout>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkBox" id="volume_widget_box">
-                                <property name="visible">False</property>
-                                <property name="orientation">vertical</property>
-                                <child>
-                                  <object class="GtkGrid" id="volume_grid">
-                                    <property name="hexpand">False</property>
-                                    <property name="margin-top">5</property>
-                                    <property name="margin-bottom">5</property>
-                                    <property name="margin-start">5</property>
-                                    <property name="margin-end">5</property>
-                                    <property name="row_spacing">10</property>
-                                    <property name="column_spacing">10</property>
-                                    <child>
-                                      <object class="GtkDrawingArea" id="pie_chart">
-                                        <property name="width_request">200</property>
-                                        <property name="height_request">200</property>
-                                        <style>
-                                          <class name="disk-space-display"/>
-                                        </style>
-                                        <layout>
-                                          <property name="column">0</property>
-                                          <property name="row">0</property>
-                                          <property name="row-span">5</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkLabel" id="spacer_label">
-                                        <property name="vexpand">True</property>
-                                        <layout>
-                                          <property name="column">1</property>
-                                          <property name="row">0</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkDrawingArea" id="used_color">
-                                        <property name="width_request">20</property>
-                                        <property name="height_request">20</property>
-                                        <property name="halign">end</property>
-                                        <style>
-                                          <class name="disk-space-display"/>
-                                          <class name="used"/>
-                                        </style>
-                                        <layout>
-                                          <property name="column">1</property>
-                                          <property name="row">1</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkDrawingArea" id="free_color">
-                                        <property name="width_request">20</property>
-                                        <property name="height_request">20</property>
-                                        <property name="halign">end</property>
-                                        <property name="vexpand">False</property>
-                                        <style>
-                                          <class name="disk-space-display"/>
-                                          <class name="free"/>
-                                        </style>
-                                        <layout>
-                                          <property name="column">1</property>
-                                          <property name="row">2</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkLabel">
-                                        <property name="halign">end</property>
-                                        <property name="label" translatable="yes">Total capacity</property>
-                                        <property name="xalign">1</property>
-                                        <style>
-                                          <class name="dim-label"/>
-                                        </style>
-                                        <layout>
-                                          <property name="column">1</property>
-                                          <property name="row">3</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkLabel">
-                                        <property name="halign">end</property>
-                                        <property name="label" translatable="yes">Filesystem type</property>
-                                        <property name="xalign">1</property>
-                                        <style>
-                                          <class name="dim-label"/>
-                                        </style>
-                                        <layout>
-                                          <property name="column">1</property>
-                                          <property name="row">4</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkLabel" id="total_capacity_value">
-                                        <property name="halign">start</property>
-                                        <property name="label">0</property>
-                                        <layout>
-                                          <property name="column">2</property>
-                                          <property name="row">3</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkLabel" id="file_system_value">
-                                        <property name="halign">start</property>
-                                        <property name="label">0</property>
-                                        <layout>
-                                          <property name="column">2</property>
-                                          <property name="row">4</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkLabel" id="used_value">
-                                        <property name="halign">end</property>
-                                        <property name="vexpand">False</property>
-                                        <property name="label">0</property>
-                                        <layout>
-                                          <property name="column">2</property>
-                                          <property name="row">1</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkLabel" id="free_value">
-                                        <property name="halign">end</property>
-                                        <property name="label">0</property>
-                                        <layout>
-                                          <property name="column">2</property>
-                                          <property name="row">2</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkLabel">
-                                        <property name="halign">start</property>
-                                        <property name="label" translatable="yes" comments="Refers to the 
capacity of the filesystem">used</property>
-                                        <layout>
-                                          <property name="column">3</property>
-                                          <property name="row">1</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkLabel">
-                                        <property name="halign">start</property>
-                                        <property name="label" translatable="yes" comments="Refers to the 
capacity of the filesystem">free</property>
-                                        <layout>
-                                          <property name="column">3</property>
-                                          <property name="row">2</property>
-                                        </layout>
-                                      </object>
-                                    </child>
-                                  </object>
-                                </child>
+                              <object class="GtkLabel" id="file_system_value">
+                                <property name="halign">start</property>
+                                <property name="label">0</property>
                                 <layout>
-                                  <property name="column">0</property>
-                                  <property name="row">16</property>
-                                  <property name="column-span">3</property>
+                                  <property name="column">2</property>
+                                  <property name="row">4</property>
                                 </layout>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkButton" id="open_in_disks_button">
-                                <property name="visible">False</property>
-                                <property name="label" translatable="yes">Open in Disks</property>
-                                <property name="focusable">True</property>
-                                <property name="receives_default">True</property>
+                              <object class="GtkLabel" id="used_value">
+                                <property name="halign">end</property>
+                                <property name="vexpand">False</property>
+                                <property name="label">0</property>
                                 <layout>
-                                  <property name="column">0</property>
-                                  <property name="row">17</property>
-                                  <property name="column-span">3</property>
+                                  <property name="column">2</property>
+                                  <property name="row">1</property>
                                 </layout>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkBox" id="spacer_1">
-                                <property name="height_request">6</property>
-                                <property name="orientation">vertical</property>
+                              <object class="GtkLabel" id="free_value">
+                                <property name="halign">end</property>
+                                <property name="label">0</property>
                                 <layout>
-                                  <property name="column">0</property>
-                                  <property name="row">5</property>
+                                  <property name="column">2</property>
+                                  <property name="row">2</property>
                                 </layout>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkBox" id="spacer_2">
-                                <property name="visible">False</property>
-                                <property name="height_request">6</property>
-                                <property name="orientation">vertical</property>
+                              <object class="GtkLabel">
+                                <property name="halign">start</property>
+                                <property name="label" translatable="yes" comments="Refers to the capacity 
of the filesystem">used</property>
                                 <layout>
-                                  <property name="column">0</property>
-                                  <property name="row">8</property>
+                                  <property name="column">3</property>
+                                  <property name="row">1</property>
                                 </layout>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkBox" id="spacer_3">
-                                <property name="visible">False</property>
-                                <property name="height_request">6</property>
-                                <property name="orientation">vertical</property>
+                              <object class="GtkLabel">
+                                <property name="halign">start</property>
+                                <property name="label" translatable="yes" comments="Refers to the capacity 
of the filesystem">free</property>
                                 <layout>
-                                  <property name="column">0</property>
-                                  <property name="row">14</property>
+                                  <property name="column">3</property>
+                                  <property name="row">2</property>
                                 </layout>
                               </object>
                             </child>
                           </object>
                         </child>
+                        <child>
+                          <object class="GtkButton" id="open_in_disks_button">
+                            <property name="label" translatable="yes" comments="Disks refers to the GNOME 
Disks application name">Open in Disks</property>
+                            <property name="focusable">True</property>
+                            <property name="receives_default">True</property>
+                          </object>
+                        </child>
                       </object>
                     </child>
                   </object>


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