[mutter/wip/tintou/clutter-frame-clock-delegates] clutter/frame-clock: Define the elements of ClutterFrameListenerIface as delegates
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/tintou/clutter-frame-clock-delegates] clutter/frame-clock: Define the elements of ClutterFrameListenerIface as delegates
- Date: Tue, 25 Aug 2020 15:10:19 +0000 (UTC)
commit d5d7da07d599a10b3fd4f3a23a244b801c8d05b3
Author: Corentin Noël <corentin noel collabora com>
Date: Tue Aug 25 17:08:04 2020 +0200
clutter/frame-clock: Define the elements of ClutterFrameListenerIface as delegates
This allows the introspection to properly understand that the fields of the ClutterFrameListenerIface
structure are delegates.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1413
clutter/clutter/clutter-frame-clock.h | 19 ++++++++++++-------
meson.build | 2 +-
2 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/clutter/clutter/clutter-frame-clock.h b/clutter/clutter/clutter-frame-clock.h
index 3c9ab7b5ad..b5ace01a1d 100644
--- a/clutter/clutter/clutter-frame-clock.h
+++ b/clutter/clutter/clutter-frame-clock.h
@@ -40,15 +40,20 @@ G_DECLARE_FINAL_TYPE (ClutterFrameClock, clutter_frame_clock,
CLUTTER, FRAME_CLOCK,
GObject)
+typedef void (* ClutterFrameListenerBeforeFrameFunc) (ClutterFrameClock *frame_clock,
+ int64_t frame_count,
+ gpointer user_data);
+
+
+typedef ClutterFrameResult (* ClutterFrameListenerFrameFunc) (ClutterFrameClock *frame_clock,
+ int64_t frame_count,
+ int64_t time_us,
+ gpointer user_data);
+
typedef struct _ClutterFrameListenerIface
{
- void (* before_frame) (ClutterFrameClock *frame_clock,
- int64_t frame_count,
- gpointer user_data);
- ClutterFrameResult (* frame) (ClutterFrameClock *frame_clock,
- int64_t frame_count,
- int64_t time_us,
- gpointer user_data);
+ ClutterFrameListenerBeforeFrameFunc before_frame;
+ ClutterFrameListenerFrameFunc frame;
} ClutterFrameListenerIface;
CLUTTER_EXPORT
diff --git a/meson.build b/meson.build
index 0a4a3ceed7..f418444553 100644
--- a/meson.build
+++ b/meson.build
@@ -24,7 +24,7 @@ uprof_req = '>= 0.3'
pango_req = '>= 1.2.0'
cairo_req = '>= 1.10.0'
pangocairo_req = '>= 1.20'
-gsettings_desktop_schemas_req = '>= 3.37.2'
+gsettings_desktop_schemas_req = '>= 3.36.0'
json_glib_req = '>= 0.12.0'
upower_glib_req = '>= 0.99.0'
xcomposite_req = '>= 0.4'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]