[gtk/constraint-guide-2: 1/5] constraint guide: Implement gtk_constraint_guide_new



commit 75e3017f512fb535adad003b190536be5e829859
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jun 27 20:28:07 2019 +0000

    constraint guide: Implement gtk_constraint_guide_new
    
    This was in the headers, but not implemented.

 gtk/gtkconstraintguide.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/gtk/gtkconstraintguide.c b/gtk/gtkconstraintguide.c
index f9f58bba8f..5c634b4d41 100644
--- a/gtk/gtkconstraintguide.c
+++ b/gtk/gtkconstraintguide.c
@@ -260,3 +260,18 @@ gtk_constraint_guide_class_init (GtkConstraintGuideClass *class)
 
   g_object_class_install_properties (object_class, LAST_GUIDE_PROP, guide_props);
 }
+
+/**
+ * gtk_constraint_guide_new:
+ *
+ * Creates a new #GtkConstraintGuide object.
+ *
+ * Return: a new #GtkConstraintGuide object.
+ */
+GtkConstraintGuide *
+gtk_constraint_guide_new (void)
+{
+  return g_object_new (GTK_TYPE_CONSTRAINT_GUIDE, NULL);
+}
+
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]