gdk: annotate colormap return values

This commit is contained in:
Daemonratte 2026-05-08 10:36:24 +02:00
commit 919afa280d
2 changed files with 5 additions and 5 deletions

View file

@ -38,7 +38,7 @@
*
* Deprecated function; use g_object_ref() instead.
*
* Return value: the colormap
* Return value: (transfer full): the colormap
*
* Deprecated: 2.0: Use g_object_ref() instead.
**/
@ -69,7 +69,7 @@ gdk_colormap_unref (GdkColormap *cmap)
*
* Returns the visual for which a given colormap was created.
*
* Return value: the visual of the colormap.
* Return value: (transfer none): the visual of the colormap.
**/
GdkVisual *
gdk_colormap_get_visual (GdkColormap *colormap)
@ -386,7 +386,7 @@ gdk_color_to_string (const GdkColor *color)
* Gets the system's default colormap for the default screen. (See
* gdk_colormap_get_system_for_screen ())
*
* Return value: the default colormap.
* Return value: (transfer none): the default colormap.
**/
GdkColormap*
gdk_colormap_get_system (void)

View file

@ -1253,7 +1253,7 @@ gdk_color_change (GdkColormap *colormap,
* returns a new reference to the existing #GdkColormap object,
* otherwise creates a new GdkColormap object and returns that
*
* Return value: the #GdkColormap object for @xcolormap.
* Return value: (transfer full): the #GdkColormap object for @xcolormap.
* Free with g_object_unref(). Note that for colormap created
* with gdk_x11_colormap_foreign_new(), unref'ing the last
* reference to the object will only free the #GdkColoramp
@ -1492,7 +1492,7 @@ gdk_x11_colormap_get_xcolormap (GdkColormap *colormap)
*
* Gets the screen for which this colormap was created.
*
* Return value: the screen for which this colormap was created.
* Return value: (transfer none): the screen for which this colormap was created.
*
* Since: 2.2
**/