Merge pull request #2237 from jcollie/adw-overview-zero-tabs

adw: allow creating new tabs in a tab overview with no open tabs
This commit is contained in:
Mitchell Hashimoto
2024-09-12 21:01:02 -07:00
committed by GitHub

View File

@ -444,7 +444,7 @@ fn gtkNewTabFromOverview(_: *c.GtkWidget, ud: ?*anyopaque) callconv(.C) ?*c.GObj
assert(self.isAdwWindow()); assert(self.isAdwWindow());
const alloc = self.app.core_app.alloc; const alloc = self.app.core_app.alloc;
const surface = self.actionSurface() orelse return null; const surface = self.actionSurface();
const tab = Tab.create(alloc, self, surface) catch return null; const tab = Tab.create(alloc, self, surface) catch return null;
return tab.adw_tab_page; return tab.adw_tab_page;
} }