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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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 21 12:01:31 2024 UTC