function __construct() { parent::__construct(XMONEY_TITULO . ' - ' . XMONEY_DESCRICAO . ' - ' . XMONEY_DESC_VERSAO, 800, 600, 'logo.png'); $this->connect('delete_event', array($this, delete_event)); // Painel $this->pack_start($hpaned = new GtkHPaned()); $hpaned->pack1($this->painel = new TPainel($this), false, true); // Notebook $hpaned->pack2($this->notebook = new TNotebook($this), true, true); // status $this->pack_start($hbox = new GtkHBox(), false); $hbox->pack_start($filial = new GtkLabel()); $filial->set_markup('<b> Filial: </b>' . $GLOBALS['Filial']); $hbox->pack_start($usuario = new GtkLabel()); $usuario->set_markup('<b>' . latin1(' Usuário: ') . '</b>' . $GLOBALS['Usuario']); $hbox->pack_start($nome = new GtkLabel()); $nome->set_markup('<b> Nome: </b>' . $GLOBALS['Nome']); $hbox->pack_start($this->data = new GtkLabel()); $this->children_show_all(); Gtk::timeout_add(1000, array($this, 'data_timeout')); define('XMONEY_JANELA_PRINCIPAL', $this); }