mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-21 11:16:08 +03:00
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:
@ -218,7 +218,10 @@ pub fn init(self: *Window, app: *App) !void {
|
|||||||
);
|
);
|
||||||
c.gtk_box_append(@ptrCast(box), toast_overlay);
|
c.gtk_box_append(@ptrCast(box), toast_overlay);
|
||||||
break :toast 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 we have a tab overview then we can set it on our notebook.
|
||||||
if (tab_overview_) |tab_overview| {
|
if (tab_overview_) |tab_overview| {
|
||||||
|
Reference in New Issue
Block a user