gdk: annotate graphics context helpers

This commit is contained in:
Daemonratte 2026-05-08 11:38:58 +02:00
commit 12c51e6d9d
3 changed files with 6 additions and 6 deletions

View file

@ -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.

View file

@ -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[],

View file

@ -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.