示例#1
0
 /**
  * Shows the VBox
  */
 public function show()
 {
     $children = parent::get_children();
     if ($children) {
         foreach ($children as $child) {
             // show child object
             $child->show();
         }
     }
     parent::show_all();
 }
示例#2
0
 /**
  * Make the datagrid scrollable
  */
 public function makeScrollable()
 {
     $this->scrollable = TRUE;
     $children = parent::get_children();
     if ($children) {
         foreach ($children as $child) {
             parent::remove($child);
         }
     }
     $scroll = new GtkScrolledWindow();
     $scroll->add($this->view);
     $scroll->set_size_request(-1, $this->height);
     parent::pack_start($scroll, true, true);
     parent::pack_start($this->action_area, false, false);
     if ($this->height) {
         parent::set_size_request(-1, $this->height);
     }
 }