[libadwaita] carousel-indicator: Resize on carousel change
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita] carousel-indicator: Resize on carousel change
- Date: Wed, 23 Feb 2022 10:07:37 +0000 (UTC)
commit 5bc02437de4cbd508b9e46ab71830177a886e44a
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.
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 04cea99b..4b1f2389 100644
--- a/src/adw-carousel-indicator-dots.c
+++ b/src/adw-carousel-indicator-dots.c
@@ -439,7 +439,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 db7bfca2..df78e9cd 100644
--- a/src/adw-carousel-indicator-lines.c
+++ b/src/adw-carousel-indicator-lines.c
@@ -424,7 +424,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]