gtk: the Future is Now

This commit is contained in:
Leah Amelia Chen
2025-09-05 10:07:36 +02:00
parent ac52af27d3
commit 93debc439c
77 changed files with 52 additions and 52 deletions

View File

@@ -39,13 +39,13 @@ pub const Clipboard = enum(Backing) {
// Our backing isn't is as small as we can in Zig, but a full
// C int if we're binding to C APIs.
const Backing = switch (build_config.app_runtime) {
.@"gtk-ng" => c_int,
.gtk => c_int,
else => u2,
};
/// Make this a valid gobject if we're in a GTK environment.
pub const getGObjectType = switch (build_config.app_runtime) {
.@"gtk-ng" => @import("gobject").ext.defineEnum(
.gtk => @import("gobject").ext.defineEnum(
Clipboard,
.{ .name = "GhosttyApprtClipboard" },
),
@@ -74,7 +74,7 @@ pub const ClipboardRequest = union(ClipboardRequestType) {
/// Make this a valid gobject if we're in a GTK environment.
pub const getGObjectType = switch (build_config.app_runtime) {
.@"gtk-ng" => @import("gobject").ext.defineBoxed(
.gtk => @import("gobject").ext.defineBoxed(
ClipboardRequest,
.{ .name = "GhosttyClipboardRequest" },
),