[gtk/ebassi/gidocgen: 127/465] texture: Add property annotations




commit 3f12b63c5f9eac3334edc242e24cf480df98c43c
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 24 20:06:36 2021 -0500

    texture: Add property annotations
    
    Connect properties, getters, and setters with annotations.

 gdk/gdktexture.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk/gdktexture.c b/gdk/gdktexture.c
index 6e3bc73380..07235eb97c 100644
--- a/gdk/gdktexture.c
+++ b/gdk/gdktexture.c
@@ -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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]