[mutter] clutter/actor: Allow setting width and height properties to -1.0
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/actor: Allow setting width and height properties to -1.0
- Date: Fri, 24 Jan 2020 17:35:38 +0000 (UTC)
commit b3fbc263403c538adf787e5abe6745072bf8af99
Author: Jonas Dreßler <verdre v0yd nl>
Date: Fri Jan 24 13:03:41 2020 +0100
clutter/actor: Allow setting width and height properties to -1.0
ClutterActors width and height can be reset to automatically use the
preferred (calculated) value by setting the width or height to -1, so
far this only works by setting it using `clutter_actor_set_width()` or
`clutter_actor_set_height()`, make sure it can also be done using the
"width" and "height" GObject properties.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1018
clutter/clutter/clutter-actor.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index 991075e02..79a92196a 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -6602,7 +6602,7 @@ clutter_actor_class_init (ClutterActorClass *klass)
g_param_spec_float ("width",
P_("Width"),
P_("Width of the actor"),
- 0.0, G_MAXFLOAT,
+ -1.0f, G_MAXFLOAT,
0.0,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
@@ -6621,7 +6621,7 @@ clutter_actor_class_init (ClutterActorClass *klass)
g_param_spec_float ("height",
P_("Height"),
P_("Height of the actor"),
- 0.0, G_MAXFLOAT,
+ -1.0f, G_MAXFLOAT,
0.0,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]