[libadwaita/libadwaita-1-0] carousel-indicator: Resize on carousel change



commit b1633753ec0e7d14fde5a3002db6e9f53936e225
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Feb 23 08:52:35 2022 +0100

    carousel-indicator: Resize on carousel change
    
    We need to resize the indicator when the carousel changes, not just
    redraw it or animate it.
    
    
    (cherry picked from commit 5bc02437de4cbd508b9e46ab71830177a886e44a)

 src/adw-carousel-indicator-dots.c  | 2 +-
 src/adw-carousel-indicator-lines.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/adw-carousel-indicator-dots.c b/src/adw-carousel-indicator-dots.c
index b2c33893..3419284e 100644
--- a/src/adw-carousel-indicator-dots.c
+++ b/src/adw-carousel-indicator-dots.c
@@ -434,7 +434,7 @@ adw_carousel_indicator_dots_set_carousel (AdwCarouselIndicatorDots *self,
                               G_BINDING_SYNC_CREATE);
   }
 
-  gtk_widget_queue_draw (GTK_WIDGET (self));
+  gtk_widget_queue_resize (GTK_WIDGET (self));
 
   g_object_notify_by_pspec (G_OBJECT (self), props[PROP_CAROUSEL]);
 }
diff --git a/src/adw-carousel-indicator-lines.c b/src/adw-carousel-indicator-lines.c
index c569268d..7ba3d69c 100644
--- a/src/adw-carousel-indicator-lines.c
+++ b/src/adw-carousel-indicator-lines.c
@@ -419,7 +419,7 @@ adw_carousel_indicator_lines_set_carousel (AdwCarouselIndicatorLines *self,
                               G_BINDING_SYNC_CREATE);
   }
 
-  gtk_widget_queue_draw (GTK_WIDGET (self));
+  gtk_widget_queue_resize (GTK_WIDGET (self));
 
   g_object_notify_by_pspec (G_OBJECT (self), props[PROP_CAROUSEL]);
 }


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