g-i: add missing since annotations for 4.2

This commit is contained in:
Bilal Elmoussaoui 2021-03-07 16:51:38 +01:00
parent 5fd22e5981
commit 6e903e13a5
5 changed files with 16 additions and 3 deletions

View File

@ -256,7 +256,7 @@ GDK_AVAILABLE_IN_ALL
const graphene_point_t * gsk_conic_gradient_node_get_center (const GskRenderNode *node) G_GNUC_PURE; const graphene_point_t * gsk_conic_gradient_node_get_center (const GskRenderNode *node) G_GNUC_PURE;
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL
float gsk_conic_gradient_node_get_rotation (const GskRenderNode *node) G_GNUC_PURE; float gsk_conic_gradient_node_get_rotation (const GskRenderNode *node) G_GNUC_PURE;
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_4_2
float gsk_conic_gradient_node_get_angle (const GskRenderNode *node) G_GNUC_PURE; float gsk_conic_gradient_node_get_angle (const GskRenderNode *node) G_GNUC_PURE;
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL
gsize gsk_conic_gradient_node_get_n_color_stops (const GskRenderNode *node) G_GNUC_PURE; gsize gsk_conic_gradient_node_get_n_color_stops (const GskRenderNode *node) G_GNUC_PURE;

View File

@ -1115,6 +1115,8 @@ gsk_conic_gradient_node_get_rotation (const GskRenderNode *node)
* angle = 90 - gsk_conic_gradient_node_get_rotation() * angle = 90 - gsk_conic_gradient_node_get_rotation()
* *
* Returns: the angle for the gradient * Returns: the angle for the gradient
*
* Since: 4.2
*/ */
float float
gsk_conic_gradient_node_get_angle (const GskRenderNode *node) gsk_conic_gradient_node_get_angle (const GskRenderNode *node)

View File

@ -63,6 +63,15 @@ struct _GskNglRenderer
G_DEFINE_TYPE (GskNglRenderer, gsk_ngl_renderer, GSK_TYPE_RENDERER) G_DEFINE_TYPE (GskNglRenderer, gsk_ngl_renderer, GSK_TYPE_RENDERER)
/**
* gsk_ngl_renderer_new:
*
* Creates a new #GskRenderer using the new OpenGL renderer.
*
* Returns: a new NGL renderer
*
* Since: 4.2
*/
GskRenderer * GskRenderer *
gsk_ngl_renderer_new (void) gsk_ngl_renderer_new (void)
{ {

View File

@ -36,9 +36,9 @@ G_BEGIN_DECLS
typedef struct _GskNglRenderer GskNglRenderer; typedef struct _GskNglRenderer GskNglRenderer;
typedef struct _GskNglRendererClass GskNglRendererClass; typedef struct _GskNglRendererClass GskNglRendererClass;
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_4_2
GType gsk_ngl_renderer_get_type (void) G_GNUC_CONST; GType gsk_ngl_renderer_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_4_2
GskRenderer *gsk_ngl_renderer_new (void); GskRenderer *gsk_ngl_renderer_new (void);
G_END_DECLS G_END_DECLS

View File

@ -534,6 +534,8 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
* emitting it causes the button to animate press then release. * emitting it causes the button to animate press then release.
* Applications should never connect to this signal, but use the * Applications should never connect to this signal, but use the
* #GtkCheckButton::toggled signal. * #GtkCheckButton::toggled signal.
*
* Since: 4.2
*/ */
signals[ACTIVATE] = signals[ACTIVATE] =
g_signal_new (I_ ("activate"), g_signal_new (I_ ("activate"),