Re: GtkImage

From: Date: Fri, 10 Feb 2006 13:53:16 +0000
Subject: Re: GtkImage
References: 1 2 3 4 5 6  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6705@lists.php.net to get a copy of this message
Christian Weiske wrote:
Breizh,
$window->connect("destroy"    , "OnDestroy");
Did you define that method somewhere? If not, use the following line: $window->connect_simple('destroy', array('gtk', 'main_quit')); If that doesn't help, and there is no more code in your script, could you file a bug?
If the error doesn't happen until you close the window then it is because you are trying to call an undefined callback for the destroy signal. Change your code as Christian suggests or define the OnDestroy function. If I run your code on my machine (Linux) I get the following error when I close the window: Warning: Unable to invoke signal callback 'OnDestroy' specified in /home/scott/playground/gtk/imagetest.php on line 4 in /home/scott/playground/gtk/imagetest.php on line 9 It is a little more helpful than the windows message. -- Scott Mattocks http://www.crisscott.com

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