public function __construct() { parent::__construct(); $dbi = new DBInterface(); $this->strings = KioskClient::getStrings(); $this->set_position(Gtk::WIN_POS_CENTER); $this->set_default_size(300, 200); $this->set_resizable(false); $this->timeLabel = new GtkLabel($this->strings["timeLeftLabel_begin"] . '0' . $this->strings["timeLeftLabel_end"]); $this->set_title($this->strings["windowTitle_begin"] . '0' . $this->strings["windowTitle_end"]); $this->logoutButton = new GtkButton($this->strings['logoutButton']); $this->pauseButton = new GtkButton($this->strings['pauseButton']); $box = new GtkVBox(); $box->pack_start($this->timeLabel); if ($dbi->getSetting('max_pause_time')) { $box->pack_start($this->pauseButton); } $box->pack_start($this->logoutButton); # if ( DEBUG ) { # $this->quitButton = new GtkButton("Quit"); # $box->pack_start( $this->quitButton ); # } # $this->connect_simple( 'destroy', array('Gtk', 'main_quit') ); $this->add($box); }