[clutter/wip/backend-next] */backend: Store the StageWindow implementation type
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/backend-next] */backend: Store the StageWindow implementation type
- Date: Fri, 4 Nov 2011 19:27:46 +0000 (UTC)
commit 8a158c18ae4d2fbbc066670ab8ce27b8b7ba4340
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Nov 4 18:27:08 2011 +0000
*/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 093fb1f..26848d3 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 e1d052f..f9419f4 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 38f5740..fdd30a7 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 dae0614..9f7d80c 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 217fbf2..dde2347 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 4d5165a..99b75df 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 8e8f1a6..aea10e9 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]