/**
  * Close (hide) this window
  *
  */
 public function close()
 {
     $this->window->hide_all();
     if ($this->initialized) {
         Gtk::main_quit();
     }
 }
Esempio n. 2
0
function on_menu_select($button, $item)
{
    // note 8
    echo "menu item selected: {$item}\n";
    if ($item == '_Quit') {
        Gtk::main_quit();
    }
}
Esempio n. 3
0
function on_menu_select($menu_item)
{
    $item = $menu_item->child->get_label();
    echo "menu selected: {$item}\n";
    if ($item == '_Quit') {
        Gtk::main_quit();
    }
}
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
 function on_window1_destroy()
 {
     Gtk::main_quit();
     exit;
 }
Esempio n. 6
0
function destroy()
{
    Gtk::main_quit();
}
Esempio n. 7
0
 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();
 }
Esempio n. 11
0
 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();
     }
 }
Esempio n. 12
0
 function __destruct()
 {
     Gtk::main_quit();
 }
Esempio n. 13
0
function cancelPreferencesDialog()
{
    global $dialogPreferences, $config;
    if ($config['firstTime']) {
        Gtk::main_quit();
    } else {
        $dialogPreferences->get_widget('_dialogPreferences')->destroy();
    }
}
Esempio n. 14
0
 public function sair()
 {
     Gtk::main_quit();
 }
Esempio n. 15
0
 /**
  * Método do descarregamento do formulario
  * 
  * @name frmDemo_unload()
  */
 public function frmDemo_unload()
 {
     // Encerra a aplicação
     Gtk::main_quit();
 }
Esempio n. 16
0
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;
    }
}
Esempio n. 17
0
		function CloseWindow(){
			Gtk::main_quit();
		}