From d7f54771036744466ee0600312bc3d60eb9f6af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 7 Sep 2022 18:25:09 +0200 Subject: [PATCH] compositor: Enable introspection Part-of: --- src/compositor/compositor.c | 12 ++++++++++-- src/core/display.c | 3 ++- src/meta/types.h | 4 ---- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c index a80746b80..217adedf8 100644 --- a/src/compositor/compositor.c +++ b/src/compositor/compositor.c @@ -1655,11 +1655,19 @@ meta_compositor_is_switching_workspace (MetaCompositor *compositor) return priv->switch_workspace_in_progress > 0; } +/** + * meta_compositor_get_laters: + * @compositor: a #MetaCompositor + * + * Returns: (transfer none): a #MetaLaters + */ MetaLaters * meta_compositor_get_laters (MetaCompositor *compositor) { - MetaCompositorPrivate *priv = - meta_compositor_get_instance_private (compositor); + MetaCompositorPrivate *priv; + g_return_val_if_fail (META_IS_COMPOSITOR (compositor), NULL); + + priv = meta_compositor_get_instance_private (compositor); return priv->laters; } diff --git a/src/core/display.c b/src/core/display.c index 81267d161..03e258a3a 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -2859,9 +2859,10 @@ meta_display_get_context (MetaDisplay *display) } /** - * meta_display_get_compositor: (skip) + * meta_display_get_compositor: * @display: a #MetaDisplay * + * Returns: (transfer none): the #MetaCompositor */ MetaCompositor * meta_display_get_compositor (MetaDisplay *display) diff --git a/src/meta/types.h b/src/meta/types.h index ba6fa02be..059ef2d10 100644 --- a/src/meta/types.h +++ b/src/meta/types.h @@ -20,10 +20,6 @@ #ifndef META_TYPES_H #define META_TYPES_H -/** - * MetaCompositor: (skip) - * - */ typedef struct _MetaBackend MetaBackend; typedef struct _MetaContext MetaContext; typedef struct _MetaCompositor MetaCompositor;