After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 740969 - wayland: Provide GIR introspection typelibs
wayland: Provide GIR introspection typelibs
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Language Bindings
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-12-01 12:57 UTC by Mart Raudsepp
Modified: 2016-03-17 03:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mart Raudsepp 2014-12-01 12:57:42 UTC
Currently it's not possible to work with GTK+ in backend specific ways from non-C code for Wayland.
Please provide a GdkWayland-3.0.gir to be able to do so, alongside GdkX11-3.0.gir and GdkWin32-3.0.gir
In particular, I can't use GStreamer with GTK+ on Wayland, because I can't set the native handle in python due to lack of gdk_wayland_window_get_wl_surface via python or anything else but C/C++ (ignoring potential further issues with subsurfaces and the like afterwards).
Comment 1 Emmanuele Bassi (:ebassi) 2014-12-01 13:34:31 UTC
is it possible to use Wayland types through introspection?
Comment 2 Daniel Stone 2014-12-01 15:56:29 UTC
Well, calling wl_registry_bind requires you to wrap structures, but the rest is all proxy objects, so yeah, if there are bindings around the C API.

Bashing the wire protocol directly won't work for any number of reasons.
Comment 3 Emmanuele Bassi (:ebassi) 2014-12-01 16:00:22 UTC
(In reply to comment #2)
> Well, calling wl_registry_bind requires you to wrap structures, but the rest is
> all proxy objects, so yeah, if there are bindings around the C API.

in order to have bindings around the C API we'll need a "wayland-gobject" wrapper library, like we do for cairo.

> Bashing the wire protocol directly won't work for any number of reasons.

yeah, I don't expect that to happen.
Comment 4 Matthias Clasen 2015-11-23 16:53:33 UTC
for this to happen, somebody with first-hand experience with introspection will have to do the work.
Comment 5 Emmanuele Bassi (:ebassi) 2015-11-23 17:04:34 UTC
As I said in comment #3, we're going to need a libwayland-gobject ancillay library to provide GType wrappers of Wayland types; GTK would then depend on that library, and then we'll be able to generate introspection data like we do for X11. Otherwise, language bindings won't be able to use the API.
Comment 6 Matthias Clasen 2016-03-17 03:47:12 UTC
I'm going to close this. If somebody is interested enough to work on this, they can open a new bug or reopen this one. I don't really know what wayland-specific calls you'd want to make, anyway - I haven't yet found a reason to use wayland-specific API in gtk itself.