[gnome-software] details: Fade in the loading spinner



commit 1872665e5107518af0840952b668eed2e496b5d2
Author: Kalev Lember <kalevlember gmail com>
Date:   Fri Feb 21 14:43:45 2014 +0100

    details: Fade in the loading spinner
    
    Fade in the spinner during 1000 ms. Since most PK backends are now
    sufficiently fast to load the package details in a fraction of second,
    this avoids needlessly flickering the spinner.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724669

 src/gs-shell-details.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 9e47b6c..c6ab06b 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -81,11 +81,11 @@ gs_shell_details_set_state (GsShellDetails *shell_details,
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "spinner_details"));
        switch (state) {
        case GS_SHELL_DETAILS_STATE_LOADING:
-               gtk_spinner_start (GTK_SPINNER (widget));
+               gs_start_spinner (GTK_SPINNER (widget));
                gtk_widget_show (widget);
                break;
        case GS_SHELL_DETAILS_STATE_READY:
-               gtk_spinner_stop (GTK_SPINNER (widget));
+               gs_stop_spinner (GTK_SPINNER (widget));
                gtk_widget_hide (widget);
                break;
        default:


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