Пример #1
0
 function __construct($pesquisar)
 {
     parent::__construct(' Filtro ');
     $this->set_expanded(true);
     $this->add($hbox = new GtkHBox());
     $hbox->pack_start($this->vbox = new GtkVBox());
     $this->vbox->pack_start(new GtkEventBox());
     $hbox->pack_start($vbox = new GtkVBox(), false);
     // pesquisar
     $vbox->pack_start($this->localizar = GtkButton::new_from_stock('gtk-find'), false);
     $this->localizar->connect('clicked', $pesquisar);
     // restaurar
     $vbox->pack_start($this->limpar = GtkButton::new_from_stock('gtk-clear'), false);
     $this->limpar->connect('clicked', array($this, 'restaurar'));
     // fill empty space
     $vbox->pack_start(new GtkEventBox());
     $this->show_all();
 }