Re: Replacing Test::WWW::Selenium::Catalyst with Gtk3::WebKit



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]