From 12c51e6d9d7522dacbcc3d1c857366c8427354f2 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 8 May 2026 11:38:58 +0200 Subject: [PATCH] gdk: annotate graphics context helpers --- gdk/gdkgc.c | 4 ++-- gdk/gdkgc.h | 2 +- gdk/x11/gdkgc-x11.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c index 8c899026a..3cb2a7b0e 100644 --- a/gdk/gdkgc.c +++ b/gdk/gdkgc.c @@ -232,7 +232,7 @@ gdk_gc_finalize (GObject *object) * * Deprecated function; use g_object_ref() instead. * - * Return value: the gc. + * Return value: (transfer full): the gc. * * Deprecated: 2.0: Use g_object_ref() instead. **/ @@ -1272,7 +1272,7 @@ gdk_gc_set_colormap (GdkGC *gc, * has a colormap, or if a colormap was set explicitely with * gdk_gc_set_colormap. * - * Return value: the colormap of @gc, or %NULL if @gc doesn't have one. + * Return value: (nullable) (transfer none): the colormap of @gc, or %NULL if @gc doesn't have one. * * Deprecated: 2.22: There is no replacement. Cairo handles colormaps * automatically, so there is no need to care about them. diff --git a/gdk/gdkgc.h b/gdk/gdkgc.h index 2d9cfe7b2..360ae44f6 100644 --- a/gdk/gdkgc.h +++ b/gdk/gdkgc.h @@ -206,7 +206,7 @@ struct _GdkGCClass GdkGCValues *values); void (*set_values) (GdkGC *gc, GdkGCValues *values, - GdkGCValuesMask mask); + GdkGCValuesMask values_mask); void (*set_dashes) (GdkGC *gc, gint dash_offset, gint8 dash_list[], diff --git a/gdk/x11/gdkgc-x11.c b/gdk/x11/gdkgc-x11.c index 45be0101b..3d2d16620 100644 --- a/gdk/x11/gdkgc-x11.c +++ b/gdk/x11/gdkgc-x11.c @@ -654,7 +654,7 @@ _gdk_windowing_gc_copy (GdkGC *dst_gc, * * Gets the #GdkScreen for which @gc was created * - * Returns: the #GdkScreen for @gc. + * Returns: (transfer none): the #GdkScreen for @gc. * * Since: 2.2 */ @@ -667,7 +667,7 @@ gdk_gc_get_screen (GdkGC *gc) } /** - * gdk_x11_gc_get_xdisplay: + * gdk_x11_gc_get_xdisplay: (skip) * @gc: a #GdkGC. * * Returns the display of a #GdkGC. @@ -685,7 +685,7 @@ gdk_x11_gc_get_xdisplay (GdkGC *gc) } /** - * gdk_x11_gc_get_xgc: + * gdk_x11_gc_get_xgc: (skip) * @gc: a #GdkGC. * * Returns the X GC of a #GdkGC.