[libadwaita] toast-overlay: Set overflow=hidden
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita] toast-overlay: Set overflow=hidden
- Date: Fri, 3 Dec 2021 18:31:53 +0000 (UTC)
commit 60b274cefee078231d5c47547f6ac159db809d27
Author: Ivan Molodetskikh <yalterz gmail com>
Date: Fri Dec 3 21:26:09 2021 +0300
toast-overlay: Set overflow=hidden
When the overlay is not covering the whole window, if the overflow is
visible, toasts will initially appear from below the widget which looks
strange.
src/adw-toast-overlay.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/adw-toast-overlay.c b/src/adw-toast-overlay.c
index c22d0781..b76c0b72 100644
--- a/src/adw-toast-overlay.c
+++ b/src/adw-toast-overlay.c
@@ -453,6 +453,8 @@ static void
adw_toast_overlay_init (AdwToastOverlay *self)
{
self->queue = g_queue_new ();
+
+ gtk_widget_set_overflow (GTK_WIDGET (self), GTK_OVERFLOW_HIDDEN);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]