[gtk/bilelmoussaoui/since-annotations] g-i: add missing since annotations
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/bilelmoussaoui/since-annotations] g-i: add missing since annotations
- Date: Sat, 13 Nov 2021 16:49:26 +0000 (UTC)
commit 64e1bdd64c777438f530218160611688118e5002
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Sat Nov 13 17:33:15 2021 +0100
g-i: add missing since annotations
gdk/gdktoplevel.c | 7 +++++++
gdk/gdktoplevel.h | 8 ++++++++
gsk/gskrendernode.h | 2 +-
gsk/gskrendernodeimpl.c | 2 ++
gtk/gtksorter.c | 2 ++
5 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/gdk/gdktoplevel.c b/gdk/gdktoplevel.c
index dd49c1e25d..7536b9d8a8 100644
--- a/gdk/gdktoplevel.c
+++ b/gdk/gdktoplevel.c
@@ -727,6 +727,13 @@ gdk_toplevel_begin_move (GdkToplevel *toplevel,
timestamp);
}
+/**
+ * gdk_toplevel_titlebar_gesture:
+ * @toplevel: a `GdkToplevel`
+ * @gesture: a `GdkTitlebarGesture`
+ *
+ * Since: 4.4
+ */
gboolean
gdk_toplevel_titlebar_gesture (GdkToplevel *toplevel,
GdkTitlebarGesture gesture)
diff --git a/gdk/gdktoplevel.h b/gdk/gdktoplevel.h
index 68613a9024..65daa24745 100644
--- a/gdk/gdktoplevel.h
+++ b/gdk/gdktoplevel.h
@@ -115,6 +115,14 @@ typedef enum
GDK_TOPLEVEL_STATE_LEFT_RESIZABLE = 1 << 15
} GdkToplevelState;
+/**
+ * GdkTitlebarGesture:
+ * @GDK_TITLEBAR_GESTURE_DOUBLE_CLICK: the surface is minimized
+ * @GDK_TITLEBAR_GESTURE_RIGHT_CLICK: the surface is maximized
+ * @GDK_TITLEBAR_GESTURE_MIDDLE_CLICK: the surface is sticky
+ *
+ * Since: 4.4
+ */
typedef enum
{
GDK_TITLEBAR_GESTURE_DOUBLE_CLICK = 1,
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h
index c420633a91..ba05d606f9 100644
--- a/gsk/gskrendernode.h
+++ b/gsk/gskrendernode.h
@@ -494,7 +494,7 @@ GskRenderNode * gsk_text_node_new (PangoFont
const graphene_point_t *offset);
GDK_AVAILABLE_IN_ALL
PangoFont * gsk_text_node_get_font (const GskRenderNode *node) G_GNUC_PURE;
-GDK_AVAILABLE_IN_ALL
+GDK_AVAILABLE_IN_4_2
gboolean gsk_text_node_has_color_glyphs (const GskRenderNode *node) G_GNUC_PURE;
GDK_AVAILABLE_IN_ALL
guint gsk_text_node_get_num_glyphs (const GskRenderNode *node) G_GNUC_PURE;
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index d318fe9eec..76592973a2 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -4547,6 +4547,8 @@ gsk_text_node_get_font (const GskRenderNode *node)
* Checks whether the text @node has color glyphs.
*
* Returns: %TRUE if the text node has color glyphs
+ *
+ * Since: 4.2
*/
gboolean
gsk_text_node_has_color_glyphs (const GskRenderNode *node)
diff --git a/gtk/gtksorter.c b/gtk/gtksorter.c
index e9861b3538..ab50dc08c2 100644
--- a/gtk/gtksorter.c
+++ b/gtk/gtksorter.c
@@ -378,6 +378,8 @@ gtk_sorter_changed_with_keys (GtkSorter *self,
* `GtkOrdering` value.
*
* Returns: the corresponding `GtkOrdering`
+ *
+ * Since: 4.2
**/
GtkOrdering
gtk_ordering_from_cmpfunc (int cmpfunc_result)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]