libglade and signals

From: Date: Thu, 29 Mar 2001 13:45:59 +0000
Subject: libglade and signals
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1185@lists.php.net to get a copy of this message
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(); ?> sample glade-signal: <class>GtkButton</class> <name>button1</name> <can_focus>True</can_focus> <signal> <name>clicked</name> <handler>test</handler> <after>True</after> <last_modification_time>Thu, 29 Mar 2001 13:14:41 GMT</last_modification_time> </signal> <label>button1</label> 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?? My configuration: php 5.0.4dev php-gtk (cvs today) libglade-0.16 gtk+-1.2.8 glib-1.2.8 Thanx, ---Bernd Roemer--- PS.: sorry about my (bad) english..

« previous php.gtk (#1185) next »