libglade
| From: | Barry Mitchelson | Date: | Wed, 14 Mar 2001 11:09:41 +0000 |
| Subject: | libglade | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-850@lists.php.net to get a copy of this message | ||
hi,
messing around with libglade, and having a problem. I can't seem to connect a signal handler
to a widget ..
here's my code :
---libglade.php---
#!/usr/local/bin/php -q
<?
function quit()
{
Gtk::main_quit();
}
$foo = &new GladeXML("foo.xml");
$foo->signal_autoconnect();
Gtk::main();
?>
---end---
and my foo.xml :
---foo.xml---
<GTK-Interface>
<widget>
<class>GtkWindow</class>
<name>MainWindow</name>
<x>30</x>
<y>30</y>
<width>300</width>
<height>300</height>
<signal>
<name>destroy</name>
<handler>quit</handler>
</signal>
</widget>
</GTK-Interface>
---end---
the window is created fine, but i get this error :
** WARNING **: could not find signal handler 'quit'.
any ideas ?
barry
--
http://www.theshining.org