Object Oriented signal handlers?

From: Date: Mon, 27 Jan 2003 19:24:59 +0000
Subject: Object Oriented signal handlers?
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2970@lists.php.net to get a copy of this message
I'm doing a project of medium size, and would like to break out my widgets and signal handlers into objects. I've figured out how to pass around the objects and widgets pretty nicely, but have so far been stumped as to how to call object-oriented signal handlers. Is there a way to do so, or do I just have to use a naming convention (and remember said names, thus fixing my object names) to make this work? For example: (pseudo-code) <?php Class Handle_Login { Function Handle_Login() { $this->Prompt(); } Function Prompt() { $this->login_window=&New GtkWindow(); // THIS IS WHERE I HAVE TROUBLE - Any ideas? $this->login_window->Connect('destroy', 'this->close', $this->login_window); } Function Close($ignored, $login_window) { // do whatever } } // end of class Handle_Login $l=New Handle_Login(); gtk::main(); ?>

« previous php.gtk.general (#2970) next »