From 46fb3d8c9f000d7fe547e3d472db4ceb141cb9a7 Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Mon, 16 Sep 2024 15:16:06 -0500 Subject: [PATCH] apprt/gtk: add notebook widget to the main box Mitchell dropped this as part of a cleanup in the PR which added AdwToastOverlay. Fixes: https://github.com/ghostty-org/ghostty/issues/2250 Link: https://github.com/ghostty-org/ghostty/pull/2235 Signed-off-by: Tristan Partin --- src/apprt/gtk/Window.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apprt/gtk/Window.zig b/src/apprt/gtk/Window.zig index 08c518acf..88ec09123 100644 --- a/src/apprt/gtk/Window.zig +++ b/src/apprt/gtk/Window.zig @@ -218,7 +218,10 @@ pub fn init(self: *Window, app: *App) !void { ); c.gtk_box_append(@ptrCast(box), toast_overlay); break :toast toast_overlay; - } else null; + } else toast: { + c.gtk_box_append(@ptrCast(box), self.notebook.asWidget()); + break :toast null; + }; // If we have a tab overview then we can set it on our notebook. if (tab_overview_) |tab_overview| {