rendered paste body<?php
class Gtk2_Table extends GtkTable {
protected $_children;
public function __construct(){
parent::__construct();
}
public function attach_defaults(GtkWidget $Widget, $left,$right,$top,$bottom) {
$this->_children[$left][$right] = $Widget;
return parent::attach_defaults($Widget, $left,$right,$top,$bottom);
}
public function remove($left,$right){
if (isset($this->_children[$left][$right])) {
$widget = $this->_children[$left][$right];
unset($this->_children[$left][$right]);
return parent::remove($widget);
}
}
}