php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53813 GdkEvent keyval field not writable
Submitted: 2011-01-22 14:10 UTC Modified: 2017-10-24 23:13 UTC
Votes:3
Avg. Score:2.7 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ptlis at ptlis dot net Assigned:
Status: Suspended Package: PHP-GTK related
PHP Version: 5.3.5 OS: Linux 32bit
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: ptlis at ptlis dot net
New email:
PHP Version: OS:

 

 [2011-01-22 14:10 UTC] ptlis at ptlis dot net
Description:
------------
If you create a GdkEvent with the GdkEventType Gdk::KEY_PRESS and try to assign a value to the keyval field the keyval field does not change.

Test script:
---------------
$event = new GdkEvent(Gdk::KEY_PRESS);
$event->keyval	= Gdk::KEY_Return;
var_dump($event);

Expected result:
----------------
object(GdkEvent)#4466 (9) {
  ["keyval"]=>
  int(65293)
  ["time"]=>
  int(0)
  ["state"]=>
  int(0)
  ["string"]=>
  string(0) ""
  ["hardware_keycode"]=>
  int(0)
  ["group"]=>
  int(0)
  ["type"]=>
  int(8)
  ["window"]=>
  NULL
  ["send_event"]=>
  bool(false)
}


Actual result:
--------------
object(GdkEvent)#4466 (9) {
  ["keyval"]=>
  int(0)
  ["time"]=>
  int(0)
  ["state"]=>
  int(0)
  ["string"]=>
  string(0) ""
  ["hardware_keycode"]=>
  int(0)
  ["group"]=>
  int(0)
  ["type"]=>
  int(8)
  ["window"]=>
  NULL
  ["send_event"]=>
  bool(false)
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-25 17:08 UTC] markskilbeck@php.net
There's no write_property handler for the GdkEvent stuff. It also seems to be 
missing for other objects. I'll work on a patch today for GdkEvent.
 [2011-01-28 21:12 UTC] markskilbeck@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: markskilbeck
 [2012-03-30 06:12 UTC] markskilbeck@php.net
-Status: Assigned +Status: Open -Assigned To: markskilbeck +Assigned To: auroraeosrose
 [2016-10-16 17:17 UTC] auroraeosrose@php.net
-Assigned To: auroraeosrose +Assigned To: buhlerax
 [2016-10-23 15:58 UTC] buhlerax@php.net
-Status: Assigned +Status: Analyzed
 [2016-10-23 15:58 UTC] buhlerax@php.net
The 2.0.1 version of php-gtk will no longer fixes.
We will work on version 3 of the php-gtk with gtk 3.
 [2017-10-24 05:45 UTC] kalle@php.net
-Status: Analyzed +Status: Assigned
 [2017-10-24 07:22 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: buhlerax +Assigned To:
 [2017-10-24 23:13 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 23:13 UTC] kalle@php.net
I'm gonna suspend this report as the PHP GTK project activity seems halted, if the activity picks backup for the project then this report should be re-opened.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 03 15:01:27 2024 UTC