applications: Set subtitle of storage row

Set the subtitle of the storage row, instead of the secondary
label, as per latest designs.
This commit is contained in:
Georges Basile Stavracas Neto 2022-01-20 13:31:01 -03:00
parent 187a6f6d48
commit c6b35b7732
2 changed files with 5 additions and 2 deletions

View file

@ -1487,12 +1487,16 @@ static void
update_total_size (CcApplicationsPanel *self)
{
g_autofree gchar *formatted_size = NULL;
g_autofree gchar *subtitle = NULL;
guint64 total;
total = self->app_size + self->data_size + self->cache_size;
formatted_size = g_format_size (total);
g_object_set (self->total, "info", formatted_size, NULL);
g_object_set (self->storage, "info", formatted_size, NULL);
/* Translators: '%s' is the formatted size, e.g. "26.2 MB" */
subtitle = g_strdup_printf (_("%s of disk space used"), formatted_size);
g_object_set (self->storage, "subtitle", subtitle, NULL);
}
static void

View file

@ -259,7 +259,6 @@
<child>
<object class="CcInfoRow" id="storage">
<property name="title" translatable="yes">Storage</property>
<property name="info">unknown</property>
<property name="has-expander">1</property>
<property name="is-link">1</property>
</object>