[gnome-software: 1/2] updates-section: Correctly set the label of progress buttons




commit d2358992b7f8bbedf1443a9d8a442e51467f868e
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Mon Feb 28 17:12:53 2022 +0100

    updates-section: Correctly set the label of progress buttons
    
    The documentation of GsProgressButton states that
    gs_progress_button_set_label() should be used instead of
    gtk_button_set_label().

 src/gs-updates-section.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-updates-section.c b/src/gs-updates-section.c
index 8867da797..c3a835198 100644
--- a/src/gs-updates-section.c
+++ b/src/gs-updates-section.c
@@ -323,13 +323,13 @@ _update_buttons (GsUpdatesSection *self)
                gtk_widget_show (GTK_WIDGET (self->button_stack));
                /* TRANSLATORS: This is the button for installing all
                 * offline updates */
-               gtk_button_set_label (GTK_BUTTON (self->button_update), _("Restart & Update"));
+               gs_progress_button_set_label (GS_PROGRESS_BUTTON (self->button_update), _("Restart & 
Update"));
        } else if (self->kind == GS_UPDATES_SECTION_KIND_ONLINE) {
                gtk_stack_set_visible_child_name (GTK_STACK (self->button_stack), "update");
                gtk_widget_show (GTK_WIDGET (self->button_stack));
                /* TRANSLATORS: This is the button for upgrading all
                 * online-updatable applications */
-               gtk_button_set_label (GTK_BUTTON (self->button_update), _("Update All"));
+               gs_progress_button_set_label (GS_PROGRESS_BUTTON (self->button_update), _("Update All"));
        } else {
                gtk_widget_hide (GTK_WIDGET (self->button_stack));
        }


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