Re: Replacing Test::WWW::Selenium::Catalyst with Gtk3::WebKit
- From: Emmanuele Bassi <ebassi gmail com>
- To: gtk-perl-list gnome org
- Subject: Re: Replacing Test::WWW::Selenium::Catalyst with Gtk3::WebKit
- Date: Mon, 28 Nov 2011 12:47:45 +0000
On 2011-11-28 at 11:25, Torsten Schoenfeld wrote:
You can also read struct fields by accessing the correct union member:
$event->key->{keyval}
But there's no support for setting struct fields yet. (You can of
course assign something to $event->key->{keyval}, but that won't
change the underlying event object at the moment.)
GTK+, like Clutter did for the same reasons, recently[0] got a bunch of
accessor methods that take a generic GdkEvent*.
I'd really recommend using the methods instead of using direct union
access, even in C.
ciao,
Emmanuele.
[0] http://git.gnome.org/browse/gtk+/commit/?id=f7c188c019ec811e4ae5d5bcf7cb333cfdfd9002
--
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]