[libhandy] squeezer: Use the CSS sizing helpers
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] squeezer: Use the CSS sizing helpers
- Date: Thu, 6 Aug 2020 12:29:49 +0000 (UTC)
commit 0a439c582c84b5fdf830c5b99e4d4b769b4c4d66
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Aug 5 20:33:58 2020 +0200
squeezer: Use the CSS sizing helpers
This makes it take CSS size properties into account.
Fixes https://gitlab.gnome.org/GNOME/libhandy/-/issues/229
src/hdy-squeezer.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/hdy-squeezer.c b/src/hdy-squeezer.c
index 7cf694bc..1995661b 100644
--- a/src/hdy-squeezer.c
+++ b/src/hdy-squeezer.c
@@ -22,6 +22,7 @@
#include "gtkprogresstrackerprivate.h"
#include "hdy-animation-private.h"
#include "hdy-cairo-private.h"
+#include "hdy-css-private.h"
/**
* SECTION:hdy-squeezer
@@ -779,6 +780,8 @@ hdy_squeezer_size_allocate (GtkWidget *widget,
GList *l;
GtkAllocation child_allocation;
+ hdy_css_size_allocate (widget, allocation);
+
gtk_widget_set_allocation (widget, allocation);
for (l = self->children; l != NULL; l = l->next) {
@@ -932,6 +935,8 @@ hdy_squeezer_measure (GtkWidget *widget,
*natural = hdy_lerp (self->last_visible_widget_width, *natural, t);
}
}
+
+ hdy_css_measure (widget, orientation, minimum, natural);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]