Merge branch 'bilelmoussaoui/gi-annotations' into 'master'

g-i: add missing since annotations for 4.2

See merge request GNOME/gtk!3268
This commit is contained in:
Matthias Clasen 2021-03-07 19:46:59 +00:00
commit 87b800c11d
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;
GDK_AVAILABLE_IN_ALL
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;
GDK_AVAILABLE_IN_ALL
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()
*
* Returns: the angle for the gradient
*
* Since: 4.2
*/
float
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)
/**
* gsk_ngl_renderer_new:
*
* Creates a new #GskRenderer using the new OpenGL renderer.
*
* Returns: a new NGL renderer
*
* Since: 4.2
*/
GskRenderer *
gsk_ngl_renderer_new (void)
{

View File

@ -36,9 +36,9 @@ G_BEGIN_DECLS
typedef struct _GskNglRenderer GskNglRenderer;
typedef struct _GskNglRendererClass GskNglRendererClass;
GDK_AVAILABLE_IN_ALL
GDK_AVAILABLE_IN_4_2
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);
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.
* Applications should never connect to this signal, but use the
* #GtkCheckButton::toggled signal.
*
* Since: 4.2
*/
signals[ACTIVATE] =
g_signal_new (I_ ("activate"),