[gnome-software] gs-loading-page: Port to the new unknown progress support
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] gs-loading-page: Port to the new unknown progress support
- Date: Thu, 14 May 2020 15:01:32 +0000 (UTC)
commit 83b6768214f6c935baf8d6f4341134e5ca403013
Author: Philip Withnall <withnall endlessm com>
Date: Tue Apr 28 18:30:08 2020 +0100
gs-loading-page: Port to the new unknown progress support
It already supported unknown progress, by assuming that 0% progress meant
the progress was unknown. This commit formalises that a bit more.
Signed-off-by: Philip Withnall <withnall endlessm com>
Helps: #276
src/gs-loading-page.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-loading-page.c b/src/gs-loading-page.c
index db0a598e..fef7da38 100644
--- a/src/gs-loading-page.c
+++ b/src/gs-loading-page.c
@@ -74,7 +74,8 @@ gs_loading_page_status_changed_cb (GsPluginLoader *plugin_loader,
g_source_remove (priv->progress_pulse_id);
priv->progress_pulse_id = 0;
}
- if (gs_app_get_progress (app) == 0) {
+
+ if (gs_app_get_progress (app) == GS_APP_PROGRESS_UNKNOWN) {
priv->progress_pulse_id = g_timeout_add (50, _pulse_cb, self);
} else {
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->progressbar),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]