[gtk/ebassi/gidocgen: 155/501] display: Add property annotations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/gidocgen: 155/501] display: Add property annotations
- Date: Fri, 5 Mar 2021 15:53:31 +0000 (UTC)
commit 50acd9e8e684cb93880917053eb3342c48be0d7f
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 24 20:02:57 2021 -0500
display: Add property annotations
Connect properties, getters, and setters with annotations.
gdk/gdkdisplay.c | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index af2dc50b8e..b86ad959f2 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -149,11 +149,9 @@ gdk_display_class_init (GdkDisplayClass *class)
class->get_default_seat = gdk_display_real_get_default_seat;
/**
- * GdkDisplay:composited:
+ * GdkDisplay:composited: (attributes org.gtk.Property.get=gdk_display_is_composited)
*
* %TRUE if the display properly composites the alpha channel.
- *
- * See [method@Gdk.Display.is_composited] for details.
*/
props[PROP_COMPOSITED] =
g_param_spec_boolean ("composited",
@@ -163,11 +161,9 @@ gdk_display_class_init (GdkDisplayClass *class)
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
/**
- * GdkDisplay:rgba:
+ * GdkDisplay:rgba: (attributes org.gtk.Property.get=gdk_display_is_rgba)
*
* %TRUE if the display supports an alpha channel.
- *
- * See [method@Gdk.Display.is_rgba] for details.
*/
props[PROP_RGBA] =
g_param_spec_boolean ("rgba",
@@ -177,11 +173,9 @@ gdk_display_class_init (GdkDisplayClass *class)
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
/**
- * GdkDisplay:input-shapes:
+ * GdkDisplay:input-shapes: (attributes org.gtk.Property.get=gdk_display_supports_input_shapes)
*
* %TRUE if the display supports input shapes.
- *
- * See [method@Gdk.Display.supports_input_shapes] for details.
*/
props[PROP_INPUT_SHAPES] =
g_param_spec_boolean ("input-shapes",
@@ -989,7 +983,7 @@ gdk_display_get_primary_clipboard (GdkDisplay *display)
}
/**
- * gdk_display_supports_input_shapes:
+ * gdk_display_supports_input_shapes: (attributes org.gtk.Method.get_property=input-shapes)
* @display: a `GdkDisplay`
*
* Returns %TRUE if the display supports input shapes.
@@ -1192,7 +1186,7 @@ gdk_display_set_debug_flags (GdkDisplay *display,
}
/**
- * gdk_display_is_composited:
+ * gdk_display_is_composited: (attributes org.gtk.Method.get_property=composited)
* @display: a `GdkDisplay`
*
* Returns whether surfaces can reasonably be expected to have
@@ -1233,7 +1227,7 @@ gdk_display_set_composited (GdkDisplay *display,
}
/**
- * gdk_display_is_rgba:
+ * gdk_display_is_rgba: (attributes org.gtk.Method.get_property=rgba)
* @display: a `GdkDisplay`
*
* Returns whether surfaces on this @display are created with an
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]