GNOME Bugzilla – Bug 695685
Add run-time checks for backend
Last modified: 2013-03-13 16:30:03 UTC
(totem:4329): GLib-GObject-WARNING **: invalid cast from `GdkWaylandDisplay' to `GdkX11Display' clutter-gtk should do run-time checks on the available clutter/gtk+ backends instead of assuming that because it's compiled against a particular backend, it is using that backend.
we already do that, except for embedding GtkWidget inside GtkClutterActor, because we currently don't support anything except the texture_from_pixmap extension. obviously, there can be bugs in the support. could you run with G_DEBUG=fatal-criticals and grab a stack trace?
Created attachment 238748 [details] [review] util: Run-time check the backend used on init Otherwise we could potentially try to run the GDK, X11 and Wayland functions on startup.
Created attachment 238792 [details] [review] embed: Check whether we're running on X11 at run-time Rather than assuming a single backend.
Review of attachment 238792 [details] [review]: looks good.
Review of attachment 238748 [details] [review]: looks good.
Attachment 238748 [details] pushed as 8274daa - util: Run-time check the backend used on init Attachment 238792 [details] pushed as c3807e2 - embed: Check whether we're running on X11 at run-time