Re: glade problem

From: Date: Fri, 21 Sep 2001 14:53:14 +0000
Subject: Re: glade problem
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-138@lists.php.net to get a copy of this message
On Fri, 21 Sep 2001, Christophe VG wrote: > Oki, ... found what was really missing ... > > return true; > > I had been testing with > > function delete_child( $widget ) { > $widget->hide(); > } > > which still caused problems. Adding "return true;" at the end fixed it. > At this moment I seem to recall reading somewhere that a signal handler > should return true to indicate it has finished off the signal, and no > further (default) consecutive handlers shoudl be called ... That does not work consistently in Gtk 1.2.x. It worked for you because you are actually supposed to return true or false from 'delete-event' handler to indicate that you allow the window to close. > What still bothers me though is the fact that if I connect both the > delete and destroy signal handlers ... > > $child->connect( 'delete_event', 'delete_child' ); > $child->connect( 'destroy_event', 'destroy_child' ); > > function delete_child( $widget ) { > print "delete\n"; > $widget->hide(); > } > > function destroy_child( $widget ) { > print "destroy\n"; > $widget->hide(); > } There is no such thing as 'destroy-event', there is 'destroy' signal, however. -Andrei * Software never has bugs. It just develops random features. *

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