texture: Add property annotations

Connect properties, getters, and setters with annotations.
This commit is contained in:
Matthias Clasen 2021-02-24 20:06:36 -05:00 committed by Emmanuele Bassi
parent d886ab9229
commit d262f740b2

View File

@ -194,7 +194,7 @@ gdk_texture_class_init (GdkTextureClass *klass)
gobject_class->dispose = gdk_texture_dispose;
/**
* GdkTexture:width:
* GdkTexture:width: (attributes org.gtk.Property.get=gdk_texture_get_width)
*
* The width of the texture, in pixels.
*/
@ -211,7 +211,7 @@ gdk_texture_class_init (GdkTextureClass *klass)
G_PARAM_EXPLICIT_NOTIFY);
/**
* GdkTexture:height:
* GdkTexture:height: (attributes org.gtk.Property.get=gdk_texture_get_height)
*
* The height of the texture, in pixels.
*/
@ -382,7 +382,7 @@ gdk_texture_new_from_file (GFile *file,
}
/**
* gdk_texture_get_width:
* gdk_texture_get_width: (attributes org.gtk.Method.get_property=width)
* @texture: a `GdkTexture`
*
* Returns the width of @texture, in pixels.
@ -398,7 +398,7 @@ gdk_texture_get_width (GdkTexture *texture)
}
/**
* gdk_texture_get_height:
* gdk_texture_get_height: (attributes org.gtk.Method.get_property=height)
* @texture: a `GdkTexture`
*
* Returns the height of the @texture, in pixels.