tab = $tab; // Init menu item $this->gtk = \GtkMenuItem::new_with_label( $this->_label ); // Render $this->gtk->show(); // Init events $this->gtk->connect( 'activate', function() { $this->tab->menu->browser->container->tab->appendPage(); } ); } }