Skip to content

Commit

Permalink
fix: building on systems with older adwaita (#5077)
Browse files Browse the repository at this point in the history
3cdb9a7 made 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](https://github.com/ghostty-org/ghostty/blob/3cdb9a7dfe59fa46dde27b5ada5932bbe42094b8/src/apprt/gtk/Window.zig#L130)
  • Loading branch information
mitchellh authored Jan 14, 2025
2 parents 3cdb9a7 + 08a0423 commit 9a47cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apprt/gtk/Window.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit 9a47cda

Please sign in to comment.