[gnome-color-manager] Show the calibration progress bar level for new versions of Argyllcms
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Show the calibration progress bar level for new versions of Argyllcms
- Date: Fri, 24 Feb 2012 18:04:06 +0000 (UTC)
commit 21c9991a5dd45662e51517d5d67093b62bd1742a
Author: Richard Hughes <richard hughsie com>
Date: Fri Feb 24 14:53:12 2012 +0000
Show the calibration progress bar level for new versions of Argyllcms
src/gcm-calibrate-argyll.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-calibrate-argyll.c b/src/gcm-calibrate-argyll.c
index 5e16c17..624aba3 100644
--- a/src/gcm-calibrate-argyll.c
+++ b/src/gcm-calibrate-argyll.c
@@ -2239,6 +2239,23 @@ g_debug ("title=%s, message=%s", title_str, string->str);
goto out;
}
+ /* update the percentage bar */
+ if (g_str_has_prefix (line, "patch ")) {
+ guint total;
+ guint current;
+ split = g_strsplit (line, " ", -1);
+ if (g_strv_length (split) != 4) {
+ g_warning ("invalid update format: %s", line);
+ goto out;
+ }
+ current = atoi (split[1]);
+ total = atoi (split[3]);
+ if (total > 0) {
+ gcm_calibrate_set_progress (GCM_CALIBRATE (calibrate_argyll),
+ total * current / 100);
+ }
+ }
+
/* report a warning so friendly people report bugs */
g_warning ("VTE: could not screenscrape: %s", line);
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]