[gtk/4.0-backports: 31/53] css: Allow transitioning different-size shadows
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/4.0-backports: 31/53] css: Allow transitioning different-size shadows
- Date: Sun, 7 Feb 2021 17:49:41 +0000 (UTC)
commit 7498e3b2c0e04ca0199ce8e01986530818b44932
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Feb 2 15:22:32 2021 -0500
css: Allow transitioning different-size shadows
The code handles it just fine. The length check was
an erronous addition.
gtk/gtkcssshadowvalue.c | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c
index f66d34205f..0429c44be6 100644
--- a/gtk/gtkcssshadowvalue.c
+++ b/gtk/gtkcssshadowvalue.c
@@ -173,9 +173,6 @@ gtk_css_value_shadow_transition (GtkCssValue *start,
guint i, len;
ShadowValue *shadows;
- if (start->n_shadows != end->n_shadows)
- return NULL;
-
if (start->n_shadows > end->n_shadows)
len = start->n_shadows;
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]