gnope php gtk gui gnope.org  

hook the quit event

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
demosthene



Joined: 29 Dec 2005
Posts: 2

PostPosted: Fri Dec 30, 2005 7:40 pm    Post subject: hook the quit event Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.