Re: libglade and signals

From: Date: Thu, 29 Mar 2001 14:58:52 +0000
Subject: Re: libglade and signals
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1189@lists.php.net to get a copy of this message
On Thu, 29 Mar 2001, Bernd Roemer wrote: > > hi... > > I'm new here... and newbie in "gtk", but i have already done some tests. > Ok... my problem: > php-gtk (with libglade) ignores my glade-signals.. > > samplecode: > <?php > dl('php_gtk.so'); > > function test() { > echo "TEST\n"; > flush(); > } > > $foo = &new GladeXML('glade.xml'); > $mainWindow = $foo->get_widget('main_window'); > Gtk::main(); > ?> > > clicking the button should call "test", shouldnt it?? > if I add these two lines: > $button=$foo->get_widget('button1'); > $button->connect("clicked","test"); > ...the buttons event is active. > isnt there another way to "connect" events?? $foo->signal_autoconnect(); -Andrei * I don't have a solution but I admire the problem. *

« previous php.gtk (#1189) next »