[libhandy/libhandy-1-2] squeezer: Don't swap width and height in size_allocate()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/libhandy-1-2] squeezer: Don't swap width and height in size_allocate()
- Date: Mon, 3 May 2021 10:50:38 +0000 (UTC)
commit fce837f6a0934b97e7a6fd96e3e0ae596ce97997
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon May 3 12:13:17 2021 +0500
squeezer: Don't swap width and height in size_allocate()
Fixes https://gitlab.gnome.org/GNOME/geary/-/issues/1221
src/hdy-squeezer.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/hdy-squeezer.c b/src/hdy-squeezer.c
index cbb42fe5..8e0c6fb6 100644
--- a/src/hdy-squeezer.c
+++ b/src/hdy-squeezer.c
@@ -861,12 +861,12 @@ hdy_squeezer_size_allocate (GtkWidget *widget,
if (self->visible_child) {
int min, nat;
- gtk_widget_get_preferred_height_for_width (self->visible_child->widget,
- allocation->width, &min, &nat);
- child_allocation.width = MAX (child_allocation.width, min);
-
gtk_widget_get_preferred_width_for_height (self->visible_child->widget,
allocation->height, &min, &nat);
+ child_allocation.width = MAX (child_allocation.width, min);
+
+ gtk_widget_get_preferred_height_for_width (self->visible_child->widget,
+ allocation->width, &min, &nat);
child_allocation.height = MAX (child_allocation.height, min);
if (child_allocation.width > allocation->width) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]