[libadwaita/wip/exalm/screenshots-2: 9/15] preferences-window: Allow adding toasts with GtkBuilder
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/screenshots-2: 9/15] preferences-window: Allow adding toasts with GtkBuilder
- Date: Mon, 20 Dec 2021 15:37:46 +0000 (UTC)
commit 2f0e3112384ca9251acb9427803efdd2eebdf7b2
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Dec 20 17:53:15 2021 +0500
preferences-window: Allow adding toasts with GtkBuilder
Match AdwToastOverlay.
src/adw-preferences-window.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/adw-preferences-window.c b/src/adw-preferences-window.c
index 0d8af508..8df89277 100644
--- a/src/adw-preferences-window.c
+++ b/src/adw-preferences-window.c
@@ -660,6 +660,8 @@ adw_preferences_window_buildable_add_child (GtkBuildable *buildable,
if (priv->content_stack && ADW_IS_PREFERENCES_PAGE (child))
adw_preferences_window_add (self, ADW_PREFERENCES_PAGE (child));
+ else if (ADW_IS_TOAST (child))
+ adw_preferences_window_add_toast (self, g_object_ref (ADW_TOAST (child)));
else
parent_buildable_iface->add_child (buildable, builder, child, type);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]