clutter: Make ClutterStageView a public class

As a compositor toolkit, it makes sense to allow consumers
of Clutter interact with the stage views themselves. As such,
ClutterStageView should be a public class.

As such, it is now included in clutter.h and should not be
included directly.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/623
This commit is contained in:
Georges Basile Stavracas Neto 2019-06-17 18:33:17 -03:00
parent 9c1afbbb67
commit 769a01f4e9
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385
3 changed files with 7 additions and 2 deletions

View File

@ -18,6 +18,10 @@
#ifndef __CLUTTER_STAGE_VIEW_H__ #ifndef __CLUTTER_STAGE_VIEW_H__
#define __CLUTTER_STAGE_VIEW_H__ #define __CLUTTER_STAGE_VIEW_H__
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <clutter/clutter.h> can be included directly."
#endif
#include <cairo.h> #include <cairo.h>
#include <glib-object.h> #include <glib-object.h>
#include <cogl/cogl.h> #include <cogl/cogl.h>

View File

@ -101,6 +101,7 @@
#include "clutter-snap-constraint.h" #include "clutter-snap-constraint.h"
#include "clutter-stage.h" #include "clutter-stage.h"
#include "clutter-stage-manager.h" #include "clutter-stage-manager.h"
#include "clutter-stage-view.h"
#include "clutter-tap-action.h" #include "clutter-tap-action.h"
#include "clutter-test-utils.h" #include "clutter-test-utils.h"
#include "clutter-texture.h" #include "clutter-texture.h"

View File

@ -75,6 +75,7 @@ clutter_headers = [
'clutter-snap-constraint.h', 'clutter-snap-constraint.h',
'clutter-stage.h', 'clutter-stage.h',
'clutter-stage-manager.h', 'clutter-stage-manager.h',
'clutter-stage-view.h',
'clutter-tap-action.h', 'clutter-tap-action.h',
'clutter-test-utils.h', 'clutter-test-utils.h',
'clutter-texture.h', 'clutter-texture.h',
@ -164,6 +165,7 @@ clutter_sources = [
'clutter-snap-constraint.c', 'clutter-snap-constraint.c',
'clutter-stage.c', 'clutter-stage.c',
'clutter-stage-manager.c', 'clutter-stage-manager.c',
'clutter-stage-view.c',
'clutter-stage-window.c', 'clutter-stage-window.c',
'clutter-tap-action.c', 'clutter-tap-action.c',
'clutter-test-utils.c', 'clutter-test-utils.c',
@ -207,7 +209,6 @@ clutter_private_headers = [
'clutter-settings-private.h', 'clutter-settings-private.h',
'clutter-stage-manager-private.h', 'clutter-stage-manager-private.h',
'clutter-stage-private.h', 'clutter-stage-private.h',
'clutter-stage-view.h',
'clutter-stage-view-private.h', 'clutter-stage-view-private.h',
'clutter-stage-window.h', 'clutter-stage-window.h',
] ]
@ -216,7 +217,6 @@ clutter_nonintrospected_sources = [
'clutter-easing.c', 'clutter-easing.c',
'clutter-event-translator.c', 'clutter-event-translator.c',
'clutter-id-pool.c', 'clutter-id-pool.c',
'clutter-stage-view.c',
] ]
clutter_deprecated_headers = [ clutter_deprecated_headers = [