aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-11-04 18:37:32 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-11-04 18:37:32 +0000
commit5d7117e71f637c4bbc2066ac757abf4a4ef1534d (patch)
treeccbb95c6d4a1383fa9f44bd28125c8458fc41823
parentcfbc5f8f04f6131e6f9b148b8706961b28390a14 (diff)
downloadpaludis-5d7117e71f637c4bbc2066ac757abf4a4ef1534d.tar.gz
paludis-5d7117e71f637c4bbc2066ac757abf4a4ef1534d.tar.xz
Make the Clear button work.
-rw-r--r--paludis/tasks/install_task.cc1
-rw-r--r--src/gtkpaludis/queue_page.cc8
-rw-r--r--src/gtkpaludis/queue_page.hh1
3 files changed, 10 insertions, 0 deletions
diff --git a/paludis/tasks/install_task.cc b/paludis/tasks/install_task.cc
index 1278b51..4d652c4 100644
--- a/paludis/tasks/install_task.cc
+++ b/paludis/tasks/install_task.cc
@@ -86,6 +86,7 @@ InstallTask::clear()
_imp->had_set_targets = false;
_imp->had_package_targets = false;
_imp->dep_list.clear();
+ _imp->raw_targets.clear();
}
void
diff --git a/src/gtkpaludis/queue_page.cc b/src/gtkpaludis/queue_page.cc
index 68801f9..43e4c78 100644
--- a/src/gtkpaludis/queue_page.cc
+++ b/src/gtkpaludis/queue_page.cc
@@ -74,6 +74,8 @@ QueuePage::QueuePage() :
_imp->recalculate_button.signal_clicked().connect(sigc::mem_fun(this,
&QueuePage::_recalculate_button_clicked));
+ _imp->clear_button.signal_clicked().connect(sigc::mem_fun(this,
+ &QueuePage::_clear_button_clicked));
}
QueuePage::~QueuePage()
@@ -105,3 +107,9 @@ QueuePage::_recalculate_button_clicked()
_imp->queue_list.calculate();
}
+void
+QueuePage::_clear_button_clicked()
+{
+ clear();
+}
+
diff --git a/src/gtkpaludis/queue_page.hh b/src/gtkpaludis/queue_page.hh
index 6b58b60..049499c 100644
--- a/src/gtkpaludis/queue_page.hh
+++ b/src/gtkpaludis/queue_page.hh
@@ -31,6 +31,7 @@ namespace gtkpaludis
{
private:
void _recalculate_button_clicked();
+ void _clear_button_clicked();
public:
QueuePage();