mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-05-05 15:33:00 +00:00
Set the paste preview text in GTK4 to monospace (#4227)
Some checks are pending
Nix / check-zig-cache-hash (push) Waiting to run
Test / build (namespace-profile-ghostty-md, aarch64-linux) (push) Blocked by required conditions
Test / build (namespace-profile-ghostty-md, x86-windows-gnu) (push) Blocked by required conditions
Test / build (namespace-profile-ghostty-md, x86_64-linux) (push) Blocked by required conditions
Test / build (namespace-profile-ghostty-md, x86_64-windows-gnu) (push) Blocked by required conditions
Test / build-bench (push) Blocked by required conditions
Test / build-linux-libghostty (push) Blocked by required conditions
Test / build-nix (namespace-profile-ghostty-md) (push) Blocked by required conditions
Test / build-nix (namespace-profile-ghostty-md-arm64) (push) Blocked by required conditions
Test / build-macos (push) Blocked by required conditions
Test / build-macos-matrix (push) Blocked by required conditions
Test / build-windows (push) Blocked by required conditions
Test / test (push) Waiting to run
Test / GTK adwaita=${{ matrix.adwaita }} x11=${{ matrix.x11 }} (false, false) (push) Blocked by required conditions
Test / GTK adwaita=${{ matrix.adwaita }} x11=${{ matrix.x11 }} (false, true) (push) Blocked by required conditions
Test / GTK adwaita=${{ matrix.adwaita }} x11=${{ matrix.x11 }} (true, false) (push) Blocked by required conditions
Test / GTK adwaita=${{ matrix.adwaita }} x11=${{ matrix.x11 }} (true, true) (push) Blocked by required conditions
Test / test-macos (push) Blocked by required conditions
Test / prettier (push) Waiting to run
Test / alejandra (push) Waiting to run
Test / typos (push) Waiting to run
Some checks are pending
Nix / check-zig-cache-hash (push) Waiting to run
Test / build (namespace-profile-ghostty-md, aarch64-linux) (push) Blocked by required conditions
Test / build (namespace-profile-ghostty-md, x86-windows-gnu) (push) Blocked by required conditions
Test / build (namespace-profile-ghostty-md, x86_64-linux) (push) Blocked by required conditions
Test / build (namespace-profile-ghostty-md, x86_64-windows-gnu) (push) Blocked by required conditions
Test / build-bench (push) Blocked by required conditions
Test / build-linux-libghostty (push) Blocked by required conditions
Test / build-nix (namespace-profile-ghostty-md) (push) Blocked by required conditions
Test / build-nix (namespace-profile-ghostty-md-arm64) (push) Blocked by required conditions
Test / build-macos (push) Blocked by required conditions
Test / build-macos-matrix (push) Blocked by required conditions
Test / build-windows (push) Blocked by required conditions
Test / test (push) Waiting to run
Test / GTK adwaita=${{ matrix.adwaita }} x11=${{ matrix.x11 }} (false, false) (push) Blocked by required conditions
Test / GTK adwaita=${{ matrix.adwaita }} x11=${{ matrix.x11 }} (false, true) (push) Blocked by required conditions
Test / GTK adwaita=${{ matrix.adwaita }} x11=${{ matrix.x11 }} (true, false) (push) Blocked by required conditions
Test / GTK adwaita=${{ matrix.adwaita }} x11=${{ matrix.x11 }} (true, true) (push) Blocked by required conditions
Test / test-macos (push) Blocked by required conditions
Test / prettier (push) Waiting to run
Test / alejandra (push) Waiting to run
Test / typos (push) Waiting to run
A simple change to make the text preview in the paste confirmation dialog monospace; this feels like something that most users would want, or at least very few users would dislike. We just call `gtk_text_view_set_monospace` and let GTK use whatever default monospace font it wants to use. Theoretically we could probably tell it to use whatever font the user has configured, but this should be sufficient for most users.
This commit is contained in:
commit
60611b8a4a
@ -131,6 +131,7 @@ const PrimaryView = struct {
|
||||
c.gtk_text_view_set_bottom_margin(@ptrCast(text), 8);
|
||||
c.gtk_text_view_set_left_margin(@ptrCast(text), 8);
|
||||
c.gtk_text_view_set_right_margin(@ptrCast(text), 8);
|
||||
c.gtk_text_view_set_monospace(@ptrCast(text), 1);
|
||||
|
||||
return .{ .root = view.root, .text = @ptrCast(text) };
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user