/** * Close (hide) this window * */ public function close() { $this->window->hide_all(); if ($this->initialized) { Gtk::main_quit(); } }
function on_menu_select($button, $item) { // note 8 echo "menu item selected: {$item}\n"; if ($item == '_Quit') { Gtk::main_quit(); } }
function on_menu_select($menu_item) { $item = $menu_item->child->get_label(); echo "menu selected: {$item}\n"; if ($item == '_Quit') { Gtk::main_quit(); } }
function xmoney_close_clicked() { $dialog = new Question($this->Owner, 'Sair do X-Money?'); $result = $dialog->ask(); if ($result != Gtk::RESPONSE_YES) { return; } Gtk::main_quit(); }
function on_window1_destroy() { Gtk::main_quit(); exit; }
function destroy() { Gtk::main_quit(); }
public function main_quit() { Gtk::main_quit(); }
/** * Intercepta a saida do mplayer * * @access private * @name stdout * @param resource $pipe Pipe do shell * @return boolean */ public function stdout($stdout) { static $data = ""; // Busca a saida $data .= $stdout; // Verifica se é o final do retorno if (strstr($data, "\n")) { // Quebra em linhas $list = preg_split("/\n/", $data); // Verifica se esta buscando propriedades if ($this->getting_info && preg_match("/^ANS/", $list[0])) { // Armazena a query $this->info_data = $list[0]; // Termina o looping Gtk::main_quit(); } elseif ($this->callback_stdout !== NULL) { // Mostra a saida para o usuario call_user_func($this->callback_stdout, $data); } // Limpa a data $data = ""; } // Retorna o sucesso return TRUE; }
function shutdown() { print "Shutting down.\n"; Gtk::main_quit(); }
function submit() { echo "OnChange --> submit\n"; Gtk::main_quit(); }
function on_menu_select($menu_item) { $item = $menu_item->child->get_label(); if (method_exists($this, $item)) { $this->{$item}(); } if ($item == 'E_xit') { Gtk::main_quit(); } }
function __destruct() { Gtk::main_quit(); }
function cancelPreferencesDialog() { global $dialogPreferences, $config; if ($config['firstTime']) { Gtk::main_quit(); } else { $dialogPreferences->get_widget('_dialogPreferences')->destroy(); } }
public function sair() { Gtk::main_quit(); }
/** * Método do descarregamento do formulario * * @name frmDemo_unload() */ public function frmDemo_unload() { // Encerra a aplicação Gtk::main_quit(); }
function on_menu_select($menu_item) { global $G; $item = $menu_item->child->get_label(); switch ($item) { case "_Koniec": Gtk::main_quit(); break; case "_Displej": show_display(); break; #case "Š_tartovka": uprav_startovku();break; #case "Š_tartovka": uprav_startovku();break; case "_Behy": uprav_behy(); break; case "Papiere pre _zapisovateľov": $cmd = './vysledky.php ZAPIS'; print $cmd . "\n"; shell_exec("nohup {$cmd} > /dev/null 2> /dev/null & echo \$!"); break; case "_VZ": $cmd = './vysledky.php VZ'; print $cmd . "\n"; shell_exec("nohup {$cmd} > /dev/null 2> /dev/null & echo \$!"); break; case "Š_tartovka": $cmd = './vysledky.php START'; print $cmd . "\n"; shell_exec("nohup {$cmd} > /dev/null 2> /dev/null & echo \$!"); break; case "_Prezentácia": $cmd = './vysledky.php PREZENCKA'; print $cmd . "\n"; shell_exec("nohup {$cmd} > /dev/null 2> /dev/null & echo \$!"); break; default: $id = explode(' ', $item); $id = $id[0]; if (isset($G["behy"][$id])) { #print 'BEH'.$id; $cmd = './vysledky.php ' . $id; print $cmd . "\n"; shell_exec("nohup {$cmd} > /dev/null 2> /dev/null & echo \$!"); } if (isset($G["sucty"][$item])) { #print 'SUCET'.$item; $cmd = './vysledky.php ' . str_replace(",", " ", $G["sucty"][$item]); print $cmd . "\n"; shell_exec("nohup {$cmd} > /dev/null 2> /dev/null & echo \$!"); } break; } }
function CloseWindow(){ Gtk::main_quit(); }