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:
Emmanuele Bassi
2015-12-11 14:23:38 +00:00
parent 407d7ca436
commit 7ca28e0974
14 changed files with 67 additions and 21 deletions

View File

@ -239,3 +239,9 @@ DllMain (HINSTANCE hinst, DWORD reason, LPVOID reserved)
return TRUE;
}
ClutterBackend *
clutter_backend_win32_new (void)
{
return g_object_new (CLUTTER_TYPE_BACKEND_WIN32, NULL);
}