gtk-ng: nuke .nick and .blurb from property definitions

This commit is contained in:
Jeffrey C. Ollie
2025-08-07 13:12:56 -05:00
parent 4aa12b76e7
commit b5073b34ee
13 changed files with 0 additions and 94 deletions

View File

@@ -79,8 +79,6 @@ pub const Application = extern struct {
Self,
?*Config,
.{
.nick = "Config",
.blurb = "The current active configuration for the application.",
.accessor = gobject.ext.typedAccessor(
Self,
?*Config,

View File

@@ -37,8 +37,6 @@ pub const ClipboardConfirmationDialog = extern struct {
Self,
bool,
.{
.nick = "Can Remember",
.blurb = "Allow remembering the choice.",
.default = false,
.accessor = gobject.ext.privateFieldAccessor(
Self,
@@ -57,8 +55,6 @@ pub const ClipboardConfirmationDialog = extern struct {
Self,
?*apprt.ClipboardRequest,
.{
.nick = "Request",
.blurb = "The clipboard request.",
.accessor = C.privateBoxedFieldAccessor("request"),
},
);
@@ -71,8 +67,6 @@ pub const ClipboardConfirmationDialog = extern struct {
Self,
?*gtk.TextBuffer,
.{
.nick = "Clipboard Contents",
.blurb = "The clipboard contents being read/written.",
.accessor = C.privateObjFieldAccessor("clipboard_contents"),
},
);
@@ -85,8 +79,6 @@ pub const ClipboardConfirmationDialog = extern struct {
Self,
bool,
.{
.nick = "Blur",
.blurb = "Blur the contents, allowing the user to reveal.",
.default = false,
.accessor = gobject.ext.privateFieldAccessor(
Self,

View File

@@ -32,8 +32,6 @@ pub const CloseConfirmationDialog = extern struct {
Self,
Target,
.{
.nick = "Target",
.blurb = "The target for this close confirmation.",
.default = .app,
.accessor = gobject.ext.privateFieldAccessor(
Self,

View File

@@ -37,8 +37,6 @@ pub const CommandPalette = extern struct {
Self,
?*Config,
.{
.nick = "Config",
.blurb = "The configuration that this command palette is using.",
.accessor = C.privateObjFieldAccessor("config"),
},
);
@@ -327,8 +325,6 @@ const Command = extern struct {
Self,
?*Config,
.{
.nick = "Config",
.blurb = "The configuration that this command palette is using.",
.accessor = C.privateObjFieldAccessor("config"),
},
);
@@ -341,7 +337,6 @@ const Command = extern struct {
Self,
?[:0]const u8,
.{
.nick = "Action Key",
.default = null,
.accessor = gobject.ext.typedAccessor(
Self,
@@ -362,7 +357,6 @@ const Command = extern struct {
Self,
?[:0]const u8,
.{
.nick = "Action",
.default = null,
.accessor = gobject.ext.typedAccessor(
Self,
@@ -383,7 +377,6 @@ const Command = extern struct {
Self,
?[:0]const u8,
.{
.nick = "Title",
.default = null,
.accessor = gobject.ext.typedAccessor(
Self,
@@ -404,7 +397,6 @@ const Command = extern struct {
Self,
?[:0]const u8,
.{
.nick = "Description",
.default = null,
.accessor = gobject.ext.typedAccessor(
Self,

View File

@@ -39,8 +39,6 @@ pub const Config = extern struct {
Self,
?*gtk.TextBuffer,
.{
.nick = "Diagnostics Buffer",
.blurb = "A TextBuffer that contains the diagnostics.",
.accessor = gobject.ext.typedAccessor(
Self,
?*gtk.TextBuffer,
@@ -57,8 +55,6 @@ pub const Config = extern struct {
Self,
bool,
.{
.nick = "has-diagnostics",
.blurb = "Whether the configuration has diagnostics.",
.default = false,
.accessor = gobject.ext.typedAccessor(
Self,

View File

@@ -29,8 +29,6 @@ pub const ConfigErrorsDialog = extern struct {
Self,
?*Config,
.{
.nick = "config",
.blurb = "The configuration that this dialog is showing errors for.",
.accessor = gobject.ext.typedAccessor(
Self,
?*Config,

View File

@@ -36,8 +36,6 @@ pub const GlobalShortcuts = extern struct {
Self,
?*Config,
.{
.nick = "Config",
.blurb = "The configuration that this is using.",
.accessor = C.privateObjFieldAccessor("config"),
},
);
@@ -50,8 +48,6 @@ pub const GlobalShortcuts = extern struct {
Self,
?*gio.DBusConnection,
.{
.nick = "Dbus Connection",
.blurb = "The dbus connection to use.",
.accessor = C.privateObjFieldAccessor("dbus_connection"),
},
);

View File

@@ -42,8 +42,6 @@ pub const ResizeOverlay = extern struct {
Self,
c_uint,
.{
.nick = "Duration",
.blurb = "The duration this overlay appears in milliseconds.",
.default = 750,
.minimum = 250,
.maximum = std.math.maxInt(c_uint),
@@ -64,8 +62,6 @@ pub const ResizeOverlay = extern struct {
Self,
c_uint,
.{
.nick = "First Delay",
.blurb = "The delay in milliseconds before any overlay is shown for the first time.",
.default = 250,
.minimum = 250,
.maximum = std.math.maxInt(c_uint),
@@ -86,8 +82,6 @@ pub const ResizeOverlay = extern struct {
Self,
gtk.Align,
.{
.nick = "halign",
.blurb = "The alignment of the label.",
.default = .center,
.accessor = gobject.ext.privateFieldAccessor(
Self,
@@ -106,8 +100,6 @@ pub const ResizeOverlay = extern struct {
Self,
gtk.Align,
.{
.nick = "valign",
.blurb = "The alignment of the label.",
.default = .center,
.accessor = gobject.ext.privateFieldAccessor(
Self,

View File

@@ -43,8 +43,6 @@ pub const SplitTree = extern struct {
Self,
bool,
.{
.nick = "Has Surfaces",
.blurb = "Tree has surfaces.",
.default = false,
.accessor = gobject.ext.typedAccessor(
Self,
@@ -64,8 +62,6 @@ pub const SplitTree = extern struct {
Self,
?*Surface.Tree,
.{
.nick = "Tree Model",
.blurb = "Underlying data model for the tree.",
.accessor = .{
.getter = getTreeValue,
.setter = setTreeValue,

View File

@@ -54,8 +54,6 @@ pub const Surface = extern struct {
Self,
?*Config,
.{
.nick = "Config",
.blurb = "The configuration that this surface is using.",
.accessor = C.privateObjFieldAccessor("config"),
},
);
@@ -68,8 +66,6 @@ pub const Surface = extern struct {
Self,
bool,
.{
.nick = "Child Exited",
.blurb = "True when the child process has exited.",
.default = false,
.accessor = gobject.ext.privateFieldAccessor(
Self,
@@ -88,8 +84,6 @@ pub const Surface = extern struct {
Self,
?*Size,
.{
.nick = "Default Size",
.blurb = "The default size of the window for this surface.",
.accessor = C.privateBoxedFieldAccessor("default_size"),
},
);
@@ -102,8 +96,6 @@ pub const Surface = extern struct {
Self,
?*font.face.DesiredSize,
.{
.nick = "Desired Font Size",
.blurb = "The desired font size, only affects initialization.",
.accessor = C.privateBoxedFieldAccessor("font_size_request"),
},
);
@@ -116,8 +108,6 @@ pub const Surface = extern struct {
Self,
bool,
.{
.nick = "Focused",
.blurb = "The focused state of the surface.",
.default = false,
.accessor = gobject.ext.privateFieldAccessor(
Self,
@@ -136,8 +126,6 @@ pub const Surface = extern struct {
Self,
?*Size,
.{
.nick = "Minimum Size",
.blurb = "The minimum size of the surface.",
.accessor = C.privateBoxedFieldAccessor("min_size"),
},
);
@@ -150,8 +138,6 @@ pub const Surface = extern struct {
Self,
bool,
.{
.nick = "Mouse Hidden",
.blurb = "Whether the mouse cursor should be hidden.",
.default = false,
.accessor = gobject.ext.privateFieldAccessor(
Self,
@@ -170,8 +156,6 @@ pub const Surface = extern struct {
Self,
terminal.MouseShape,
.{
.nick = "Mouse Shape",
.blurb = "The current mouse shape to show for the surface.",
.default = .text,
.accessor = gobject.ext.privateFieldAccessor(
Self,
@@ -192,8 +176,6 @@ pub const Surface = extern struct {
Self,
?[:0]const u8,
.{
.nick = "Mouse Hover URL",
.blurb = "The URL the mouse is currently hovering over (if any).",
.default = null,
.accessor = C.privateStringFieldAccessor("mouse_hover_url"),
},
@@ -209,8 +191,6 @@ pub const Surface = extern struct {
Self,
?[:0]const u8,
.{
.nick = "Working Directory",
.blurb = "The current working directory as reported by core.",
.default = null,
.accessor = C.privateStringFieldAccessor("pwd"),
},
@@ -226,8 +206,6 @@ pub const Surface = extern struct {
Self,
?[:0]const u8,
.{
.nick = "Title",
.blurb = "The title of the surface.",
.default = null,
.accessor = C.privateStringFieldAccessor("title"),
},
@@ -241,8 +219,6 @@ pub const Surface = extern struct {
Self,
bool,
.{
.nick = "Zoom",
.blurb = "Whether the surface should be zoomed.",
.default = false,
.accessor = gobject.ext.privateFieldAccessor(
Self,

View File

@@ -40,8 +40,6 @@ const SurfaceChildExitedBanner = extern struct {
Self,
?*apprt.surface.Message.ChildExited,
.{
.nick = "Data",
.blurb = "The child exit data.",
.accessor = C.privateBoxedFieldAccessor("data"),
},
);

View File

@@ -47,8 +47,6 @@ pub const Tab = extern struct {
Self,
?*Surface,
.{
.nick = "Active Surface",
.blurb = "The currently active surface.",
.accessor = gobject.ext.typedAccessor(
Self,
?*Surface,
@@ -67,8 +65,6 @@ pub const Tab = extern struct {
Self,
?*Config,
.{
.nick = "Config",
.blurb = "The configuration that this surface is using.",
.accessor = C.privateObjFieldAccessor("config"),
},
);
@@ -81,8 +77,6 @@ pub const Tab = extern struct {
Self,
?*Surface.Tree,
.{
.nick = "Surface Tree",
.blurb = "The surface tree that is contained in this tab.",
.accessor = gobject.ext.typedAccessor(
Self,
?*Surface.Tree,
@@ -103,8 +97,6 @@ pub const Tab = extern struct {
Self,
?[:0]const u8,
.{
.nick = "Title",
.blurb = "The title of the active surface.",
.default = null,
.accessor = C.privateStringFieldAccessor("title"),
},

View File

@@ -54,8 +54,6 @@ pub const Window = extern struct {
Self,
?*Surface,
.{
.nick = "Active Surface",
.blurb = "The currently active surface.",
.accessor = gobject.ext.typedAccessor(
Self,
?*Surface,
@@ -74,8 +72,6 @@ pub const Window = extern struct {
Self,
?*Config,
.{
.nick = "Config",
.blurb = "The configuration that this surface is using.",
.accessor = C.privateObjFieldAccessor("config"),
},
);
@@ -88,8 +84,6 @@ pub const Window = extern struct {
Self,
bool,
.{
.nick = "Debug",
.blurb = "True if runtime safety checks are enabled.",
.default = build_config.is_debug,
.accessor = gobject.ext.typedAccessor(Self, bool, .{
.getter = struct {
@@ -109,8 +103,6 @@ pub const Window = extern struct {
Self,
bool,
.{
.nick = "Headerbar Visible",
.blurb = "True if the headerbar is visible.",
.default = true,
.accessor = gobject.ext.typedAccessor(Self, bool, .{
.getter = Self.getHeaderbarVisible,
@@ -126,8 +118,6 @@ pub const Window = extern struct {
Self,
bool,
.{
.nick = "Quick Terminal",
.blurb = "Whether this window behaves like a quick terminal.",
.default = true,
.accessor = gobject.ext.privateFieldAccessor(
Self,
@@ -146,8 +136,6 @@ pub const Window = extern struct {
Self,
bool,
.{
.nick = "Autohide Tab Bar",
.blurb = "If true, tab bar should autohide.",
.default = true,
.accessor = gobject.ext.typedAccessor(Self, bool, .{
.getter = Self.getTabsAutohide,
@@ -163,8 +151,6 @@ pub const Window = extern struct {
Self,
bool,
.{
.nick = "Wide Tabs",
.blurb = "If true, tabs will be in the wide expanded style.",
.default = true,
.accessor = gobject.ext.typedAccessor(Self, bool, .{
.getter = Self.getTabsWide,
@@ -180,8 +166,6 @@ pub const Window = extern struct {
Self,
bool,
.{
.nick = "Tab Bar Visibility",
.blurb = "If true, tab bar should be visible.",
.default = true,
.accessor = gobject.ext.typedAccessor(Self, bool, .{
.getter = Self.getTabsVisible,
@@ -197,8 +181,6 @@ pub const Window = extern struct {
Self,
adw.ToolbarStyle,
.{
.nick = "Toolbar Style",
.blurb = "The style for the toolbar top/bottom bars.",
.default = .raised,
.accessor = gobject.ext.typedAccessor(
Self,