All pastes #262753 Raw Edit

Stuff

public text v1 · immutable
#262753 ·published 2006-11-30 21:27 UTC
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);
		}
	}
	
}