class TestGladeWindow { function show() { $glade =& new GladeXml( "glade_example.glade"); $handlers = array('on_italic_activate', 'on_bold_activate', 'on_OK_clicked'); $handlerMap = array(); foreach ($handlers as $handler) { $handlerMap[$handler] = array(array(&$this, $handler)); } $glade->signal_autoconnect_object( $handlerMap); $window =& $glade->get_widget('window1'); $window->show_all(); } /* ...handlers here... */ }