diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2019-07-01 12:39:24 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2019-07-01 12:39:24 +0100 |
commit | 4dd1de41293cdb5ca06d64136ab5549794f1cac3 (patch) | |
tree | 0cb179008372f1ee65f6d3f4e1d568e2fd66795d /gtk/gtkconstraintprivate.h | |
parent | 48e6cd42559558956350620e9deb744219a1bd04 (diff) | |
download | gtk+-4dd1de41293cdb5ca06d64136ab5549794f1cac3.tar.gz |
Use explicit values for constraint strength
Instead of playing games with mapping negative symbolic values to
positive ones, let's use the appropriate constants everywhere. This
allows us to use:
GTK_CONSTRAINT_STRENGTH_WEAK * 2
Or
GTK_CONSTRAINT_STRENGTH_STRONG + 1
In code using the public API.
We also store the strength values as integers, so we can compare them
properly, and only turn them into doubles when they are inserted into
the solver, just like every other variable.
Diffstat (limited to 'gtk/gtkconstraintprivate.h')
-rw-r--r-- | gtk/gtkconstraintprivate.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk/gtkconstraintprivate.h b/gtk/gtkconstraintprivate.h index 8a7fa147f1..d90b313f42 100644 --- a/gtk/gtkconstraintprivate.h +++ b/gtk/gtkconstraintprivate.h @@ -52,8 +52,6 @@ struct _GtkConstraint guint active : 1; }; -double gtk_constraint_get_weight (GtkConstraint *constraint); - void gtk_constraint_attach (GtkConstraint *constraint, GtkConstraintSolver *solver, GtkConstraintRef *ref); |