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 <tristan@partin.io>
This commit is contained in:
Tristan Partin
2024-09-16 15:16:06 -05:00
parent dfe62cec85
commit 46fb3d8c9f

View File

@ -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| {