lib: Clean up QueueModel on_row_*() functions
This commit is contained in:
parent
cba07b5957
commit
e9e1e4fad8
|
@ -32,31 +32,20 @@ bool QueueModel::check_iter_validity(const Gtk::TreeIter &iter) const
|
|||
|
||||
void QueueModel::on_row_inserted(unsigned int row)
|
||||
{
|
||||
Gtk::TreePath path;
|
||||
Gtk::TreeIter iter;
|
||||
|
||||
path.push_back(row);
|
||||
increment_stamp();
|
||||
row_inserted(path, iter);
|
||||
row_inserted(Gtk::TreePath(1, row), Gtk::TreeIter());
|
||||
}
|
||||
|
||||
void QueueModel::on_row_deleted(unsigned int row)
|
||||
{
|
||||
Gtk::TreePath path;
|
||||
|
||||
path.push_back(row);
|
||||
increment_stamp();
|
||||
row_deleted(path);
|
||||
row_deleted(Gtk::TreePath(1, row));
|
||||
}
|
||||
|
||||
void QueueModel::on_row_changed(unsigned int row)
|
||||
{
|
||||
Gtk::TreePath path;
|
||||
Gtk::TreeIter iter;
|
||||
|
||||
path.push_back(row);
|
||||
increment_stamp();
|
||||
row_changed(path, iter);
|
||||
row_changed(Gtk::TreePath(1, row), Gtk::TreeIter());
|
||||
}
|
||||
|
||||
void QueueModel::on_path_selected(const Gtk::TreePath &path)
|
||||
|
|
Loading…
Reference in New Issue
Block a user