Пример #1
0
 /**
  * Class Constructor
  * @param $name Name of the widget
  */
 public function __construct($name)
 {
     parent::__construct();
     parent::set_size_request(200, -1);
     $this->wname = $name;
     $this->validations = array();
 }
Пример #2
0
 /**
  * Class Constructor
  * @param $name Name of the widget
  */
 public function __construct($name)
 {
     $this->wname = $name;
     $this->chars = array('-', '_', '.', '/', '\\', ':', '|', '(', ')', '[', ']', '{', '}');
     $this->validations = array();
     parent::__construct();
     parent::set_size_request(200, 24);
     // Connecting 'changed' signal to check the typed chars.
     $this->handler = parent::connect_after('changed', array($this, 'onChanged'));
 }