[gnome-software: 1/2] updates-page: Simplify the updates spinner description




commit d6ab04d4bb094dbc85e50d0f5e7e8335c5b65e40
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Jul 21 15:04:27 2021 +0200

    updates-page: Simplify the updates spinner description
    
    We make things complex to give barely any details, and the user can't do
    anything with this information anyway, so let's simplify setting the
    spinner's label.

 src/gs-updates-page.c  | 19 -------------------
 src/gs-updates-page.ui |  1 +
 2 files changed, 1 insertion(+), 19 deletions(-)
---
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index 94f7067bf..7e0e30da3 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -70,7 +70,6 @@ struct _GsUpdatesPage
        GtkWidget               *button_updates_offline;
        GtkWidget               *updates_failed_page;
        GtkWidget               *updates_uptodate_page;
-       GtkWidget               *label_updates_spinner;
        GtkWidget               *scrolledwindow_updates;
        GtkWidget               *spinner_updates;
        GtkWidget               *stack_updates;
@@ -298,23 +297,6 @@ gs_updates_page_update_ui_state (GsUpdatesPage *self)
                break;
        }
 
-       /* spinner text */
-       switch (self->state) {
-       case GS_UPDATES_PAGE_STATE_STARTUP:
-               gtk_label_set_label (GTK_LABEL (self->label_updates_spinner),
-                                    /* TRANSLATORS: the updates panel is starting up */
-                                    _("Setting Up Updates…"));
-               break;
-       case GS_UPDATES_PAGE_STATE_ACTION_REFRESH:
-       case GS_UPDATES_PAGE_STATE_ACTION_GET_UPDATES:
-               gtk_label_set_label (GTK_LABEL (self->label_updates_spinner),
-                                    /* TRANSLATORS: the update panel is doing *something* vague */
-                                    _("Looking for New Updates…"));
-               break;
-       default:
-               break;
-       }
-
        /* headerbar refresh icon */
        switch (self->state) {
        case GS_UPDATES_PAGE_STATE_ACTION_REFRESH:
@@ -1425,7 +1407,6 @@ gs_updates_page_class_init (GsUpdatesPageClass *klass)
        gtk_widget_class_bind_template_child (widget_class, GsUpdatesPage, button_updates_offline);
        gtk_widget_class_bind_template_child (widget_class, GsUpdatesPage, updates_failed_page);
        gtk_widget_class_bind_template_child (widget_class, GsUpdatesPage, updates_uptodate_page);
-       gtk_widget_class_bind_template_child (widget_class, GsUpdatesPage, label_updates_spinner);
        gtk_widget_class_bind_template_child (widget_class, GsUpdatesPage, scrolledwindow_updates);
        gtk_widget_class_bind_template_child (widget_class, GsUpdatesPage, spinner_updates);
        gtk_widget_class_bind_template_child (widget_class, GsUpdatesPage, stack_updates);
diff --git a/src/gs-updates-page.ui b/src/gs-updates-page.ui
index 868a1b1c4..127b273cf 100644
--- a/src/gs-updates-page.ui
+++ b/src/gs-updates-page.ui
@@ -91,6 +91,7 @@
                         <property name="wrap">True</property>
                         <property name="wrap-mode">word-char</property>
                         <property name="justify">center</property>
+                        <property name="label" translatable="yes" comments="TRANSLATORS: the updates panel 
is starting up.">Loading Updates…</property>
                         <style>
                           <class name="title"/>
                           <class name="large-title"/>


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