[gnome-software] sources dialog: Fade in the loading spinner



commit 9f0ec518d212a6fb80240d6c87dc7d193cb482f3
Author: Kalev Lember <kalevlember gmail com>
Date:   Sat Mar 15 14:44:35 2014 +0100

    sources dialog: Fade in the loading spinner
    
    This avoids briefly flickering the spinner when the loading time is fast
    enough (which is the case with newer PK backends like Hawkey).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726413

 src/gs-sources-dialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-sources-dialog.c b/src/gs-sources-dialog.c
index 1aec22b..eec7e6c 100644
--- a/src/gs-sources-dialog.c
+++ b/src/gs-sources-dialog.c
@@ -133,7 +133,7 @@ get_sources_cb (GsPluginLoader *plugin_loader,
        GsSourcesDialogPrivate *priv = gs_sources_dialog_get_instance_private (dialog);
 
        /* show results */
-       gtk_spinner_stop (GTK_SPINNER (priv->spinner));
+       gs_stop_spinner (GTK_SPINNER (priv->spinner));
 
        /* get the results */
        list = gs_plugin_loader_get_sources_finish (plugin_loader, res, &error);
@@ -167,7 +167,7 @@ reload_sources (GsSourcesDialog *dialog)
        GsSourcesDialogPrivate *priv = gs_sources_dialog_get_instance_private (dialog);
 
        gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), "waiting");
-       gtk_spinner_start (GTK_SPINNER (priv->spinner));
+       gs_start_spinner (GTK_SPINNER (priv->spinner));
        gtk_widget_hide (priv->button_back);
        gs_container_remove_all (GTK_CONTAINER (priv->listbox));
 


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