gtk: rename close-pane to close-split

Rename internal action and function from close-pane/actionClosePane
to close-split/actionCloseSplit for consistency with the UI label.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Caleb
2026-03-04 16:35:54 -08:00
parent 7777dedd5f
commit 4885a53a98
2 changed files with 3 additions and 3 deletions

View File

@@ -186,7 +186,7 @@ pub const SplitTree = extern struct {
.init("new-split", actionNewSplit, s_variant_type),
.init("equalize", actionEqualize, null),
.init("zoom", actionZoom, null),
.init("close-pane", actionClosePane, null),
.init("close-split", actionCloseSplit, null),
};
_ = ext.actions.addAsGroup(Self, self, "split-tree", &actions);
@@ -664,7 +664,7 @@ pub const SplitTree = extern struct {
self.as(gobject.Object).notifyByPspec(properties.tree.impl.param_spec);
}
pub fn actionClosePane(
pub fn actionCloseSplit(
_: *gio.SimpleAction,
_: ?*glib.Variant,
self: *Self,

View File

@@ -319,7 +319,7 @@ menu context_menu_model {
item {
label: _("Close Split");
action: "split-tree.close-pane";
action: "split-tree.close-split";
}
}