[gtk/ebassi/gidocgen: 2/26] drawcontext: Add property annotations




commit 6a159ea6dddb1fbc9e5eed99f251de7bb24ca55d
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 24 20:03:48 2021 -0500

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

 gdk/gdkdrawcontext.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk/gdkdrawcontext.c b/gdk/gdkdrawcontext.c
index 451b7499ab..4135ed4e4e 100644
--- a/gdk/gdkdrawcontext.c
+++ b/gdk/gdkdrawcontext.c
@@ -139,7 +139,7 @@ gdk_draw_context_class_init (GdkDrawContextClass *klass)
   klass->surface_resized = gdk_draw_context_default_surface_resized;
 
   /**
-   * GdkDrawContext:display:
+   * GdkDrawContext:display: (attributes org.gtk.Property.get=gdk_draw_context_get_display)
    *
    * The `GdkDisplay` used to create the `GdkDrawContext`.
    */
@@ -152,7 +152,7 @@ gdk_draw_context_class_init (GdkDrawContextClass *klass)
                          G_PARAM_STATIC_STRINGS);
 
   /**
-   * GdkDrawContext:surface:
+   * GdkDrawContext:surface: (attributes org.gtk.Property.get=gdk_draw_context_get_surface)
    *
    * The `GdkSurface` the context is bound to.
    */
@@ -214,7 +214,7 @@ gdk_draw_context_surface_resized (GdkDrawContext *context)
 }
 
 /**
- * gdk_draw_context_get_display:
+ * gdk_draw_context_get_display: (attributes org.gtk.Method.get_property=display)
  * @context: a `GdkDrawContext`
  *
  * Retrieves the `GdkDisplay` the @context is created for
@@ -232,7 +232,7 @@ gdk_draw_context_get_display (GdkDrawContext *context)
 }
 
 /**
- * gdk_draw_context_get_surface:
+ * gdk_draw_context_get_surface: (attributes org.gtk.Method.get_property=surface)
  * @context: a `GdkDrawContext`
  *
  * Retrieves the surface that @context is bound to.


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