Move datagrid reset logic to data_grid class
This commit is contained in:
parent
a199784934
commit
53652d62b4
@ -67,6 +67,13 @@ class Data_Grid extends GtkTreeView {
|
||||
public function reset($model = null)
|
||||
{
|
||||
$this->model->clear();
|
||||
|
||||
$cols = $this->get_columns();
|
||||
|
||||
foreach($cols as $c)
|
||||
{
|
||||
$this->remove_column($c);
|
||||
}
|
||||
}
|
||||
}
|
||||
// End of data_grid.php
|
@ -253,13 +253,6 @@ class Connection_Sidebar extends GtkVBox {
|
||||
public function refresh()
|
||||
{
|
||||
$this->treeview->reset();
|
||||
$cols = $this->treeview->get_columns();
|
||||
|
||||
foreach($cols as $c)
|
||||
{
|
||||
$this->treeview->remove_column($c);
|
||||
}
|
||||
|
||||
$this->_render();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user