本文整理汇总了PHP中Gtk::main_quit方法的典型用法代码示例。如果您正苦于以下问题:PHP Gtk::main_quit方法的具体用法?PHP Gtk::main_quit怎么用?PHP Gtk::main_quit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk
的用法示例。
在下文中一共展示了Gtk::main_quit方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: close
/**
* Close (hide) this window
*
*/
public function close()
{
$this->window->hide_all();
if ($this->initialized) {
Gtk::main_quit();
}
}
示例2: on_menu_select
function on_menu_select($button, $item)
{
// note 8
echo "menu item selected: {$item}\n";
if ($item == '_Quit') {
Gtk::main_quit();
}
}
示例3: on_menu_select
function on_menu_select($menu_item)
{
$item = $menu_item->child->get_label();
echo "menu selected: {$item}\n";
if ($item == '_Quit') {
Gtk::main_quit();
}
}
示例4: xmoney_close_clicked
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();
}
示例5: on_window1_destroy
function on_window1_destroy()
{
Gtk::main_quit();
exit;
}
示例6: destroy
function destroy()
{
Gtk::main_quit();
}
示例7: main_quit
public function main_quit()
{
Gtk::main_quit();
}
示例8: stdout
/**
* 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;
}
示例9: shutdown
function shutdown()
{
print "Shutting down.\n";
Gtk::main_quit();
}
示例10: submit
function submit()
{
echo "OnChange --> submit\n";
Gtk::main_quit();
}
示例11: on_menu_select
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();
}
}
示例12: __destruct
function __destruct()
{
Gtk::main_quit();
}
示例13: cancelPreferencesDialog
function cancelPreferencesDialog()
{
global $dialogPreferences, $config;
if ($config['firstTime']) {
Gtk::main_quit();
} else {
$dialogPreferences->get_widget('_dialogPreferences')->destroy();
}
}
示例14: sair
public function sair()
{
Gtk::main_quit();
}
示例15: frmDemo_unload
/**
* Método do descarregamento do formulario
*
* @name frmDemo_unload()
*/
public function frmDemo_unload()
{
// Encerra a aplicação
Gtk::main_quit();
}