public function __construct()
{
parent::__construct();
$this->tab_buddylist = new tab_buddylist($this);
$this->connect_simple('destroy', array($this,"hide_client_to_tray"));
$this->set_title("Alternet LIVE!");
$this->box = new GtkVBox();
//$this->menu = new GtkLabel("Menu will go here");
$this->menu = new client_menu_bar($this);
$this->box->pack_start($this->menu);
$this->notebook = new GtkNotebook();
$this->box->pack_start($this->notebook);
$this->add($this->box);
$this->show_all();
}
public function hide_client_to_tray()
{
$this->visibility = false;
$this->hide_all();
return false;
}