#35990 [Opn->Csd]: activate signal on GtkEntry throws warning

From: Date: Sat, 14 Jan 2006 04:57:27 +0000
Subject: #35990 [Opn->Csd]: activate signal on GtkEntry throws warning
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2198@lists.php.net to get a copy of this message
ID: 35990 Updated by: andrei@php.net Reported By: cweiske@php.net -Status: Open +Status: Closed Bug Type: PHP-GTK related Operating System: any PHP Version: 5.1.2 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2006-01-13 10:34:31] cweiske@php.net Description: ------------ I get a warning when using the activate signal on a GtkEntry. Reproduce code: --------------- <?php //Start it and press return. Warning will come $wnd = new GtkWindow(); $wnd->connect_simple('destroy', array('gtk', 'main_quit')); $entry = new GtkEntry(); function echoit($value) { echo $value . "\r\n";} $entry->connect_simple('activate', 'echoit', 'test'); $wnd->add($entry); $wnd->show_all(); Gtk::main(); ?> Expected result: ---------------- output: test Actual result: -------------- PHP Warning: PHP-GTK internal error: unsupported type (null) in /data/cvs/phpgtk2/php-gtk/test/bug_gtkentry_activate.phpw on line 9 PHP Warning: Could not convert return value of signal callback 'echoit' to '(null)' in /data/cvs/phpgtk2/php-gtk/test/bug_gtkentry_activate.phpw on line 9 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35990&edit=1

« previous php.gtk.dev (#2198) next »