[gtk/ebassi/gidocgen: 130/500] Box GtkExpressionWatch
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/gidocgen: 130/500] Box GtkExpressionWatch
- Date: Thu, 11 Mar 2021 16:48:06 +0000 (UTC)
commit 1eb9d699b5c398d6fb9dbac62509a17593521e99
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Feb 22 18:23:36 2021 +0000
Box GtkExpressionWatch
Otherwise bindings won't know how to deal with memory management.
gtk/gtkexpression.c | 4 ++++
gtk/gtkexpression.h | 6 +++++-
2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkexpression.c b/gtk/gtkexpression.c
index 7c3b016e1e..bbe19ad301 100644
--- a/gtk/gtkexpression.c
+++ b/gtk/gtkexpression.c
@@ -232,6 +232,10 @@ struct _GtkExpressionWatch
guchar sub[0];
};
+G_DEFINE_BOXED_TYPE (GtkExpressionWatch, gtk_expression_watch,
+ gtk_expression_watch_ref,
+ gtk_expression_watch_unref)
+
#define GTK_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_EXPRESSION,
GtkExpressionClass))
/*< private >
diff --git a/gtk/gtkexpression.h b/gtk/gtkexpression.h
index 0862f8dd54..a2c2421cad 100644
--- a/gtk/gtkexpression.h
+++ b/gtk/gtkexpression.h
@@ -25,7 +25,9 @@
G_BEGIN_DECLS
-#define GTK_TYPE_EXPRESSION (gtk_expression_get_type ())
+#define GTK_TYPE_EXPRESSION (gtk_expression_get_type ())
+#define GTK_TYPE_EXPRESSION_WATCH (gtk_expression_watch_get_type())
+
#define GTK_IS_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EXPRESSION))
#define GTK_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EXPRESSION, GtkExpression))
@@ -69,6 +71,8 @@ GtkExpressionWatch * gtk_expression_bind (GtkExpression
const char * property,
gpointer this_);
+GDK_AVAILABLE_IN_4_2
+GType gtk_expression_watch_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_ALL
GtkExpressionWatch * gtk_expression_watch_ref (GtkExpressionWatch *watch);
GDK_AVAILABLE_IN_ALL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]