[libadwaita/wip/exalm/swipeable-animations: 6/7] swipeable: Stop using get_allocated_width()/height()




commit 7dec08e3dcd6fdce0746c6fad3ae6d0cce6011dd
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Dec 5 17:29:07 2021 +0500

    swipeable: Stop using get_allocated_width()/height()

 src/adw-swipeable.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/adw-swipeable.c b/src/adw-swipeable.c
index d2303cc7..d79f90c4 100644
--- a/src/adw-swipeable.c
+++ b/src/adw-swipeable.c
@@ -165,6 +165,6 @@ adw_swipeable_get_swipe_area (AdwSwipeable           *self,
 
   rect->x = 0;
   rect->y = 0;
-  rect->width = gtk_widget_get_allocated_width (GTK_WIDGET (self));
-  rect->height = gtk_widget_get_allocated_height (GTK_WIDGET (self));
+  rect->width = gtk_widget_get_width (GTK_WIDGET (self));
+  rect->height = gtk_widget_get_height (GTK_WIDGET (self));
 }


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