[Aptitude-svn-commit] r3742 - in branches/aptitude-0.3/aptitude: .
src
Daniel Burrows
dburrows at costa.debian.org
Mon Aug 8 17:55:42 UTC 2005
Author: dburrows
Date: Mon Aug 8 17:55:39 2005
New Revision: 3742
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vs_progress.cc
branches/aptitude-0.3/aptitude/src/vs_progress.h
Log:
Update vs_progress for refcounting.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Mon Aug 8 17:55:39 2005
@@ -1,5 +1,9 @@
2005-08-08 Daniel Burrows <dburrows at debian.org>
+ * src/vs_progress.cc, src/vs_progress.h:
+
+ Update the vs_progress class for the refcounting protocol.
+
* src/download_bar.cc, src/download_bar.h:
Add missing size request implementations so the bar compiles.
Modified: branches/aptitude-0.3/aptitude/src/vs_progress.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vs_progress.cc (original)
+++ branches/aptitude-0.3/aptitude/src/vs_progress.cc Mon Aug 8 17:55:39 2005
@@ -25,6 +25,10 @@
#include <vscreen/transcode.h>
+vs_progress::vs_progress()
+{
+}
+
void vs_progress::paint(const style &st)
{
int barsize;
Modified: branches/aptitude-0.3/aptitude/src/vs_progress.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vs_progress.h (original)
+++ branches/aptitude-0.3/aptitude/src/vs_progress.h Mon Aug 8 17:55:39 2005
@@ -29,7 +29,14 @@
class vs_progress:public vscreen_widget, public OpProgress
{
+protected:
+ vs_progress();
public:
+ static ref_ptr<vs_progress> create()
+ {
+ return new vs_progress;
+ }
+
virtual void paint(const style &st);
virtual void Update();
virtual void Done();
@@ -41,4 +48,6 @@
point get_cursorloc();
};
+typedef ref_ptr<vs_progress> vs_progress_ref;
+
#endif
More information about the Aptitude-svn-commit
mailing list