Partially Resolve #15
This commit is contained in:
parent
bd4e041e7d
commit
6bad56ad25
@ -136,7 +136,7 @@ foreach(pdo_drivers() as $d)
|
||||
}
|
||||
|
||||
// Load Firebird if there is support
|
||||
if(function_exists('fbird_connect'))
|
||||
if (function_exists('fbird_connect'))
|
||||
{
|
||||
array_map('do_include', glob($path.'firebird/*.php'));
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ class Connection_Sidebar extends GtkVBox {
|
||||
// Create the treeview
|
||||
$this->treeview = (isset($this->treeview))
|
||||
? $this->treeview
|
||||
: new Data_Grid();
|
||||
: new Data_Grid(new GTKTreeStore(Gobject::TYPE_PHP_VALUE));
|
||||
|
||||
$model = $this->treeview->get_model();
|
||||
|
||||
|
@ -26,12 +26,16 @@ class Data_Grid extends GtkTreeView {
|
||||
*/
|
||||
public function __construct($model = null)
|
||||
{
|
||||
$this->model = ( ! is_null($model))
|
||||
? $model
|
||||
: new GtkTreeStore(Gobject::TYPE_PHP_VALUE);
|
||||
|
||||
if ( ! is_null($model))
|
||||
{
|
||||
$this->model = $model;
|
||||
parent::__construct($this->model);
|
||||
}
|
||||
else
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
|
@ -212,7 +212,7 @@ class DB_tabs extends GTKNotebook {
|
||||
*/
|
||||
private static function _add_tab(&$conn, $tab_name, $col_name, $method, $events=array())
|
||||
{
|
||||
$tab = new Data_Grid();
|
||||
$tab = new Data_Grid(new GTKTreeStore(Gobject::TYPE_PHP_VALUE));
|
||||
$tab_model = $tab->get_model();
|
||||
|
||||
$conn_name = $conn->conn_name;
|
||||
|
Reference in New Issue
Block a user