summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-11-04 23:53:20 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-11-04 23:53:20 +0000
commit61b6ae09b58f24d4ada42b2e2ee9cc73e710d242 (patch)
tree7b6a3ce41a39876255dc8b2a84fb606f8c6a42a9
parent2218984dce0119c491bb75aeea277a3682057a3b (diff)
downloadmana-61b6ae09b58f24d4ada42b2e2ee9cc73e710d242.tar.gz
mana-61b6ae09b58f24d4ada42b2e2ee9cc73e710d242.tar.bz2
mana-61b6ae09b58f24d4ada42b2e2ee9cc73e710d242.tar.xz
mana-61b6ae09b58f24d4ada42b2e2ee9cc73e710d242.zip
Removed useless addRow method.
-rw-r--r--ChangeLog2
-rw-r--r--src/gui/updatewindow.cpp17
-rw-r--r--src/gui/updatewindow.h5
3 files changed, 8 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e0ff305..9bfa084a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2006-11-04 Björn Steinbrink <B.Steinbrink@gmx.de>
+ * src/gui/updatewindow.cpp, src/gui/updatewindow.h: Removed useless
+ addRow method.
* src/main.cpp: Restore the homeDir config entry (temporarily).
Initialize the logger before libxml2.
* src/main.cpp: Add a libxml2 init wrapper. Use a null-logger function
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index 00b10406..510e10ba 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -181,12 +181,6 @@ void UpdaterWindow::loadNews()
setVisible(true);
}
-void UpdaterWindow::addRow(const std::string &row)
-{
- mBrowserBox->addRow(row);
- mScrollArea->setVerticalScrollAmount(mScrollArea->getVerticalMaxScroll());
-}
-
int UpdaterWindow::updateProgress(void *ptr,
double dt, double dn, double ut, double un)
{
@@ -342,11 +336,12 @@ void UpdaterWindow::logic()
}
mThread = NULL;
}
- addRow("");
- addRow("##1 The update process is incomplete.");
- addRow("##1 It is strongly recommended that");
- addRow("##1 you try again later");
- addRow(mCurlError);
+ mBrowserBox->addRow("");
+ mBrowserBox->addRow("##1 The update process is incomplete.");
+ mBrowserBox->addRow("##1 It is strongly recommended that");
+ mBrowserBox->addRow("##1 you try again later");
+ mBrowserBox->addRow(mCurlError);
+ mScrollArea->setVerticalScrollAmount(mScrollArea->getVerticalMaxScroll());
mDownloadStatus = UPDATE_COMPLETE;
break;
case UPDATE_NEWS:
diff --git a/src/gui/updatewindow.h b/src/gui/updatewindow.h
index 5016036d..16442656 100644
--- a/src/gui/updatewindow.h
+++ b/src/gui/updatewindow.h
@@ -81,11 +81,6 @@ class UpdaterWindow : public Window, public gcn::ActionListener
void action(const std::string& eventId, gcn::Widget* widget);
- /**
- * Add a row to the message field.
- */
- void addRow(const std::string &row);
-
void logic();
int updateState;