[gtk/wip/ebassi/constraint-layout: 65/69] constraint guide: Fix initial property values
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/ebassi/constraint-layout: 65/69] constraint guide: Fix initial property values
- Date: Sun, 30 Jun 2019 23:15:34 +0000 (UTC)
commit f2d7433bf65e873701fcfdad948f1c278498c79b
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 29 22:13:41 2019 +0000
constraint guide: Fix initial property values
This was overlooked when the max-width/max-height/
strength properties were added.
gtk/gtkconstraintguide.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/gtk/gtkconstraintguide.c b/gtk/gtkconstraintguide.c
index b6db1554b2..f394787067 100644
--- a/gtk/gtkconstraintguide.c
+++ b/gtk/gtkconstraintguide.c
@@ -94,6 +94,15 @@ G_DEFINE_TYPE_WITH_CODE (GtkConstraintGuide, gtk_constraint_guide, G_TYPE_OBJECT
static void
gtk_constraint_guide_init (GtkConstraintGuide *guide)
{
+ guide->strength = GTK_CONSTRAINT_STRENGTH_MEDIUM;
+
+ guide->values[MIN_WIDTH] = 0;
+ guide->values[MIN_HEIGHT] = 0;
+ guide->values[NAT_WIDTH] = 0;
+ guide->values[NAT_HEIGHT] = 0;
+ guide->values[MAX_WIDTH] = G_MAXINT;
+ guide->values[MAX_HEIGHT] = G_MAXINT;
+
guide->bound_attributes =
g_hash_table_new_full (g_str_hash, g_str_equal,
NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]