Add internal constructor function for each backend
We're going to use it to create an instance of each backend without using the get_type() function.
This commit is contained in:
@ -56,8 +56,6 @@
|
||||
#include <cogl/cogl.h>
|
||||
#include <cogl/cogl-wayland-client.h>
|
||||
|
||||
#define clutter_backend_wayland_get_type _clutter_backend_wayland_get_type
|
||||
|
||||
G_DEFINE_TYPE (ClutterBackendWayland, clutter_backend_wayland, CLUTTER_TYPE_BACKEND);
|
||||
|
||||
static struct wl_display *_foreign_display = NULL;
|
||||
@ -322,6 +320,12 @@ clutter_backend_wayland_init (ClutterBackendWayland *backend_wayland)
|
||||
{
|
||||
}
|
||||
|
||||
ClutterBackend *
|
||||
clutter_backend_wayland_new (void)
|
||||
{
|
||||
return g_object_new (CLUTTER_TYPE_BACKEND_WAYLAND, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_wayland_set_display
|
||||
* @display: pointer to a wayland display
|
||||
|
Reference in New Issue
Block a user