summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Burrows <Daniel Burrows Daniel_Burrows@alumni.brown.edu>2010-07-02 19:10:33 -0700
committerDaniel Burrows <Daniel Burrows Daniel_Burrows@alumni.brown.edu>2010-07-02 19:10:33 -0700
commit277eed1dedba6cb73a4b2527808869e872395750 (patch)
tree39174ec45ac7a4f70d632f00775d7a43d1684ed3 /src
parent8f6afd9a86847d9c4b94dd2fa6acf18f2cbb252e (diff)
downloadaptitude-277eed1dedba6cb73a4b2527808869e872395750.tar.gz
Use display_and_advance() for the standard progress meters.
Diffstat (limited to 'src')
-rw-r--r--src/cmdline/cmdline_progress_display.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/cmdline/cmdline_progress_display.cc b/src/cmdline/cmdline_progress_display.cc
index 6485d682..74abeb94 100644
--- a/src/cmdline/cmdline_progress_display.cc
+++ b/src/cmdline/cmdline_progress_display.cc
@@ -162,17 +162,15 @@ namespace aptitude
const std::wstring msg =
transcode(last_progress.get_progress_status());
if(old_style_percentage)
- message->set_text( (wformat(L"%s... %s")
- % msg
- % transcode(_("Done"))).str() );
+ message->display_and_advance( (wformat(L"%s... %s")
+ % msg
+ % transcode(_("Done"))).str() );
else
// ForTranslators: the string replacing "DONE" will
// be truncated or padded to 4 characters.
- message->set_text( (wformat(L"[%4s] %s")
- % transcode(_("DONE"))
- % msg).str() );
-
- message->preserve_and_advance();
+ message->display_and_advance( (wformat(L"[%4s] %s")
+ % transcode(_("DONE"))
+ % msg).str() );
}
else
message->set_text(L"");