[mutter/tintou/introspection-fixes: 2/2] clutter/stage: Add nullable annotation to get_*_actor methods
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/tintou/introspection-fixes: 2/2] clutter/stage: Add nullable annotation to get_*_actor methods
- Date: Sun, 7 Aug 2022 17:40:26 +0000 (UTC)
commit 3d249c28e55add12220540d105e88a59c2116c7c
Author: Corentin Noël <tintou noel tf>
Date: Sun Aug 7 19:39:18 2022 +0200
clutter/stage: Add nullable annotation to get_*_actor methods
Allows to know when a NULL ClutterActor is possibly being returned.
clutter/clutter/clutter-stage.c | 6 +++---
clutter/clutter/clutter-stage.h | 4 ----
2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index acc3889eda..ff03b8831e 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -3296,7 +3296,7 @@ clutter_stage_remove_device_entry (ClutterStage *self,
* Retrieves the [class@Clutter.Actor] underneath the pointer or touch point
* of @device and @sequence.
*
- * Return value: (transfer none): a pointer to the #ClutterActor or %NULL
+ * Returns: (transfer none) (nullable): a pointer to the #ClutterActor or %NULL
*/
ClutterActor *
clutter_stage_get_device_actor (ClutterStage *stage,
@@ -3905,7 +3905,7 @@ clutter_grab_get_seat_state (ClutterGrab *grab)
*
* Gets the actor that currently holds a grab.
*
- * Returns: (transfer none): The grabbing actor
+ * Returns: (transfer none) (nullable): The grabbing #ClutterActor or %NULL
**/
ClutterActor *
clutter_stage_get_grab_actor (ClutterStage *stage)
@@ -3933,7 +3933,7 @@ clutter_stage_get_grab_actor (ClutterStage *stage)
* and may differ from the actor that the stage originally
* delivered the event to.
*
- * Return value: (transfer none): a pointer to the #ClutterActor or %NULL
+ * Returns: (transfer none) (nullable): a pointer to the #ClutterActor or %NULL
**/
ClutterActor *
clutter_stage_get_event_actor (ClutterStage *stage,
diff --git a/clutter/clutter/clutter-stage.h b/clutter/clutter/clutter-stage.h
index 61fff4d272..f8a2162a2e 100644
--- a/clutter/clutter/clutter-stage.h
+++ b/clutter/clutter/clutter-stage.h
@@ -168,10 +168,6 @@ void clutter_stage_set_minimum_size (ClutterStage
guint width,
guint height);
CLUTTER_EXPORT
-void clutter_stage_get_minimum_size (ClutterStage *stage,
- guint *width,
- guint *height);
-CLUTTER_EXPORT
void clutter_stage_set_key_focus (ClutterStage *stage,
ClutterActor *actor);
CLUTTER_EXPORT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]