demosthene
Joined: 29 Dec 2005 Posts: 2
|
Posted: Fri Dec 30, 2005 7:40 pm Post subject: hook the quit event |
|
|
| Code: | class FenetreBase extends GtkWindow {
function __construct() {
parent::__construct();
1/ // $this->connect_object('destroy', array($this, 'onDestroyFenetre'));
2/ // $this->connect_object('destroy', array('gtk', 'main_quit'));
3/ // $this->connect_object('destroy', array('gtk', 'onDestroyFenetre'));
...
$this->show_all();
}
function onDestroyFenetre(){
alert("quit");
Gtk::quit();
}
}
new FenetreBase();
Gtk::main();
|
Hello i want to hook the quit event, but i can't. Is there a way to fire the onDestroyFenetre function ?
Thanks a lot
Demosthène |
|