[libadwaita] Revert "indicator-bin: Measure mask too"



commit 7558ebda5d7a83312b7d95982f598fc616b75a89
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Nov 2 19:21:42 2021 +0000

    Revert "indicator-bin: Measure mask too"
    
    This reverts commit 0079226f6a3e8336cc448c921ab3a42b2dee3e90

 src/adw-indicator-bin.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/adw-indicator-bin.c b/src/adw-indicator-bin.c
index ae5243c2..3e60d67e 100644
--- a/src/adw-indicator-bin.c
+++ b/src/adw-indicator-bin.c
@@ -124,17 +124,13 @@ adw_indicator_bin_size_allocate (GtkWidget *widget,
                                  int        baseline)
 {
   AdwIndicatorBin *self = ADW_INDICATOR_BIN (widget);
-  GtkRequisition mask_size, indicator_size, size;
+  GtkRequisition size;
   float x, y;
 
   if (self->child)
     gtk_widget_allocate (self->child, width, height, baseline, NULL);
 
-  gtk_widget_get_preferred_size (self->mask, NULL, &mask_size);
-  gtk_widget_get_preferred_size (self->indicator, NULL, &indicator_size);
-
-  size.width = MAX (mask_size.width, indicator_size.width);
-  size.height = MAX (mask_size.height, indicator_size.height);
+  gtk_widget_get_preferred_size (self->indicator, NULL, &size);
 
   if (size.width > width * 2)
     x = (width - size.width) / 2.0f;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]