This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/5] Improve reporting of progress whilst parsing .ini file

Don't leave a status line still showing the download statistics
when we are parsing the .ini file (which can take a couple of seconds),
update all the status text

There are sill some places where setup goes into deep think with
no user feedback, but they are harder to fix.

2010-11-07  Jon TURNEY  <>

	* (GuiParseFeedback::progress, GuiParseFeedback::iniName):
	Update all the text in the progress dialog whilst parsing .ini file,
	not just the top line.
--- |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ b/
index 76853b8..f27a4e5 100644
--- a/
+++ b/
@@ -89,10 +89,16 @@ public:
 	    << " bytes of ini file read)" << endLog; */
       Progress.SetBar1(pos, max);
+      static char buf[100];
+      sprintf(buf, "%d %%  (%ldk/%ldk)", lastpct, pos/1000, max/1000);
+      Progress.SetText3(buf);
   virtual void iniName (const std::string& name)
-      Progress.SetText1 (("Parsing ini file \"" + name + "\"").c_str());
+      Progress.SetText1 ("Parsing...");
+      Progress.SetText2 (name.c_str());
+      Progress.SetText3 ("");
   virtual void babble(const std::string& message)const

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]