php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35990 activate signal on GtkEntry throws warning
Submitted: 2006-01-13 10:34 UTC Modified: 2006-01-14 05:57 UTC
From: cweiske@php.net Assigned:
Status: Closed Package: PHP-GTK related
PHP Version: 5.1.2 OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cweiske@php.net
New email:
PHP Version: OS:

 

 [2006-01-13 10:34 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-14 05:57 UTC] andrei@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 11:01:27 2024 UTC