libadwaita/0008-bottom-sheet-Fix-a-crash-when-closing-twice.patch
Christian Hergert d0a41fdac7
Update to 1.6.6 with manual patching
Previously we had 1.6.1 but now there is 1.6.6. However after 1.6.2
libadwaita decided in a minor release to redo their build system to no
longer pre-generate CSS but instead push that on downstreams.

Ignoring the wisdom of doing this in a minor release, just work around
it by manually backporting the changes. They don't affect any CSS which
would need to be regenerated anyway.

Resolves: RHEL-86191
2025-04-29 13:19:21 -07:00

26 lines
821 B
Diff

From c0fb07855ccc619954b05fc25f1c503dd2d60915 Mon Sep 17 00:00:00 2001
From: Alice Mikhaylenko <alicem@gnome.org>
Date: Mon, 16 Dec 2024 23:02:19 +0400
Subject: [PATCH 08/33] bottom-sheet: Fix a crash when closing twice
(cherry picked from commit ee6336d7247c008d110f46d9caa5baf30b1a638b)
---
src/adw-bottom-sheet.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/adw-bottom-sheet.c b/src/adw-bottom-sheet.c
index 900ca7f9..e2c9ff0c 100644
--- a/src/adw-bottom-sheet.c
+++ b/src/adw-bottom-sheet.c
@@ -1569,6 +1569,7 @@ adw_bottom_sheet_set_open (AdwBottomSheet *self,
if (open) {
gtk_widget_set_child_visible (self->dimming, self->modal);
gtk_widget_set_child_visible (self->sheet_bin, TRUE);
+ self->has_been_open = true;
}
gtk_widget_set_can_target (self->dimming, open);
--
2.47.1