mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-20 03:51:26 +00:00
fix: building on systems with older adwaita (#5077)
3cdb9a7made ghostty unable to compile on my debian system (adwaita 1.2.2) due to `adw_tab_overview_set_show_start_title_buttons` and `adw_tab_overview_set_show_end_title_buttons` which are since 1.3.0. I increased the comptime check to 1.4.0, this is fine since the assignment of `tab_overview` is [already comptime guarded by 1.4.0](3cdb9a7dfe/src/apprt/gtk/Window.zig (L130))
This commit is contained in:
@@ -410,7 +410,7 @@ pub fn syncAppearance(self: *Window, config: *const configpkg.Config) !void {
|
||||
// Disable the title buttons (close, maximize, minimize, ...)
|
||||
// *inside* the tab overview if CSDs are disabled.
|
||||
// We do spare the search button, though.
|
||||
if ((comptime adwaita.versionAtLeast(0, 0, 0)) and
|
||||
if ((comptime adwaita.versionAtLeast(1, 4, 0)) and
|
||||
adwaita.enabled(&self.app.config))
|
||||
{
|
||||
if (self.tab_overview) |tab_overview| {
|
||||
|
||||
Reference in New Issue
Block a user