clutter: Include clutter-frame-clock.h from clutter.h

So that it can be used by libmutter and gnome-shell.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1285
This commit is contained in:
Jonas Ådahl 2020-05-26 22:20:11 +02:00
parent 847e89d31f
commit 1de436684c
5 changed files with 8 additions and 4 deletions

View File

@ -18,11 +18,15 @@
#ifndef CLUTTER_FRAME_CLOCK_H
#define CLUTTER_FRAME_CLOCK_H
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <clutter/clutter.h> can be included directly."
#endif
#include <glib.h>
#include <glib-object.h>
#include <stdint.h>
#include "clutter/clutter.h"
#include "clutter/clutter-types.h"
typedef enum _ClutterFrameResult
{

View File

@ -63,6 +63,7 @@
#include "clutter-feature.h"
#include "clutter-fixed-layout.h"
#include "clutter-flow-layout.h"
#include "clutter-frame-clock.h"
#include "clutter-gesture-action.h"
#include "clutter-grid-layout.h"
#include "clutter-image.h"

View File

@ -36,6 +36,7 @@ clutter_headers = [
'clutter-feature.h',
'clutter-fixed-layout.h',
'clutter-flow-layout.h',
'clutter-frame-clock.h',
'clutter-gesture-action.h',
'clutter-grid-layout.h',
'clutter-image.h',
@ -192,7 +193,6 @@ clutter_private_headers = [
'clutter-effect-private.h',
'clutter-event-private.h',
'clutter-flatten-effect.h',
'clutter-frame-clock.h',
'clutter-graphene.h',
'clutter-gesture-action-private.h',
'clutter-id-pool.h',

View File

@ -1,4 +1,3 @@
#include "clutter-frame-clock.h"
#include "clutter/clutter.h"
#include "tests/clutter-test-utils.h"

View File

@ -1,4 +1,4 @@
#include "clutter/clutter-frame-clock.h"
#include "clutter/clutter.h"
#include "tests/clutter-test-utils.h"
static const float refresh_rate = 60.0;