From b980d2dc17f84b4c5e99f9f850feb3ac47de2439 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 4 Nov 2011 18:27:08 +0000 Subject: [PATCH] */backend: Store the StageWindow implementation type --- clutter/cex100/clutter-backend-cex100.c | 2 ++ clutter/egl/clutter-backend-eglnative.c | 2 ++ clutter/gdk/clutter-backend-gdk.c | 3 +++ clutter/osx/clutter-backend-osx.c | 2 ++ clutter/wayland/clutter-backend-wayland.c | 2 ++ clutter/win32/clutter-backend-win32.c | 10 ++++++---- clutter/x11/clutter-backend-x11.c | 4 ++++ 7 files changed, 21 insertions(+), 4 deletions(-) diff --git a/clutter/cex100/clutter-backend-cex100.c b/clutter/cex100/clutter-backend-cex100.c index 093fb1f54..26848d3a4 100644 --- a/clutter/cex100/clutter-backend-cex100.c +++ b/clutter/cex100/clutter-backend-cex100.c @@ -169,6 +169,8 @@ clutter_backend_cex100_class_init (ClutterBackendCex100Class *klass) gobject_class->dispose = clutter_backend_cex100_dispose; + backend_class->stage_window_type = CLUTTER_TYPE_STAGE_COGL; + backend_class->get_device_manager = clutter_backend_cex100_get_device_manager; backend_class->create_stage = clutter_backend_cex100_create_stage; backend_class->get_display = clutter_backend_cex100_get_display; diff --git a/clutter/egl/clutter-backend-eglnative.c b/clutter/egl/clutter-backend-eglnative.c index e1d052fe4..f9419f4dc 100644 --- a/clutter/egl/clutter-backend-eglnative.c +++ b/clutter/egl/clutter-backend-eglnative.c @@ -129,6 +129,8 @@ clutter_backend_egl_native_class_init (ClutterBackendEglNativeClass *klass) gobject_class->dispose = clutter_backend_egl_native_dispose; + backend_class->stage_window_type = CLUTTER_TYPE_STAGE_COGL; + backend_class->get_device_manager = clutter_backend_egl_native_get_device_manager; backend_class->create_stage = clutter_backend_egl_native_create_stage; } diff --git a/clutter/gdk/clutter-backend-gdk.c b/clutter/gdk/clutter-backend-gdk.c index 38f574091..fdd30a732 100644 --- a/clutter/gdk/clutter-backend-gdk.c +++ b/clutter/gdk/clutter-backend-gdk.c @@ -388,7 +388,10 @@ clutter_backend_gdk_class_init (ClutterBackendGdkClass *klass) gobject_class->dispose = clutter_backend_gdk_dispose; gobject_class->finalize = clutter_backend_gdk_finalize; + backend_class->stage_window_type = CLUTTER_TYPE_STAGE_GDK; + backend_class->post_parse = _clutter_backend_gdk_post_parse; + backend_class->get_features = clutter_backend_gdk_get_features; backend_class->get_device_manager = clutter_backend_gdk_get_device_manager; backend_class->copy_event_data = clutter_backend_gdk_copy_event_data; diff --git a/clutter/osx/clutter-backend-osx.c b/clutter/osx/clutter-backend-osx.c index dae061496..9f7d80c68 100644 --- a/clutter/osx/clutter-backend-osx.c +++ b/clutter/osx/clutter-backend-osx.c @@ -249,6 +249,8 @@ clutter_backend_osx_class_init (ClutterBackendOSXClass *klass) object_class->dispose = clutter_backend_osx_dispose; + backend_class->stage_window_type = CLUTTER_TYPE_STAGE_OSX; + backend_class->post_parse = clutter_backend_osx_post_parse; backend_class->get_features = clutter_backend_osx_get_features; backend_class->create_stage = clutter_backend_osx_create_stage; diff --git a/clutter/wayland/clutter-backend-wayland.c b/clutter/wayland/clutter-backend-wayland.c index 217fbf254..dde234756 100644 --- a/clutter/wayland/clutter-backend-wayland.c +++ b/clutter/wayland/clutter-backend-wayland.c @@ -620,6 +620,8 @@ _clutter_backend_wayland_class_init (ClutterBackendWaylandClass *klass) gobject_class->dispose = clutter_backend_wayland_dispose; gobject_class->finalize = clutter_backend_wayland_finalize; + backend_class->stage_window_type = CLUTTER_TYPE_STAGE_WAYLAND; + backend_class->pre_parse = clutter_backend_wayland_pre_parse; backend_class->post_parse = clutter_backend_wayland_post_parse; backend_class->get_features = clutter_backend_wayland_get_features; diff --git a/clutter/win32/clutter-backend-win32.c b/clutter/win32/clutter-backend-win32.c index 4d5165a13..99b75df17 100644 --- a/clutter/win32/clutter-backend-win32.c +++ b/clutter/win32/clutter-backend-win32.c @@ -236,10 +236,12 @@ clutter_backend_win32_class_init (ClutterBackendWin32Class *klass) gobject_class->dispose = clutter_backend_win32_dispose; gobject_class->finalize = clutter_backend_win32_finalize; - backend_class->init_events = clutter_backend_win32_init_events; - backend_class->create_stage = clutter_backend_win32_create_stage; - backend_class->add_options = clutter_backend_win32_add_options; - backend_class->get_features = clutter_backend_win32_get_features; + backend_class->stage_window_type = CLUTTER_TYPE_STAGE_WIN32; + + backend_class->init_events = clutter_backend_win32_init_events; + backend_class->create_stage = clutter_backend_win32_create_stage; + backend_class->add_options = clutter_backend_win32_add_options; + backend_class->get_features = clutter_backend_win32_get_features; backend_class->get_device_manager = clutter_backend_win32_get_device_manager; } diff --git a/clutter/x11/clutter-backend-x11.c b/clutter/x11/clutter-backend-x11.c index 8e8f1a61a..aea10e97e 100644 --- a/clutter/x11/clutter-backend-x11.c +++ b/clutter/x11/clutter-backend-x11.c @@ -808,14 +808,18 @@ clutter_backend_x11_class_init (ClutterBackendX11Class *klass) gobject_class->dispose = clutter_backend_x11_dispose; gobject_class->finalize = clutter_backend_x11_finalize; + backend_class->stage_window_type = CLUTTER_TYPE_STAGE_X11; + backend_class->pre_parse = _clutter_backend_x11_pre_parse; backend_class->post_parse = _clutter_backend_x11_post_parse; backend_class->add_options = clutter_backend_x11_add_options; backend_class->get_features = clutter_backend_x11_get_features; + backend_class->get_device_manager = clutter_backend_x11_get_device_manager; backend_class->copy_event_data = clutter_backend_x11_copy_event_data; backend_class->free_event_data = clutter_backend_x11_free_event_data; backend_class->translate_event = clutter_backend_x11_translate_event; + backend_class->get_renderer = clutter_backend_x11_get_renderer; backend_class->get_display = clutter_backend_x11_get_display; backend_class->create_stage = clutter_backend_x11_create_stage;