mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00
gtk: remove unneeded method setContainer on Surface
We don't need to update the titles, etc. since that's done by `grabFocus` and that then makes the method not that useful. Removing for now.
This commit is contained in:

committed by
Mitchell Hashimoto

parent
1b4fc83f43
commit
7e9dce054f
@ -403,12 +403,9 @@ pub fn unref(self: *Surface) void {
|
||||
c.g_object_unref(self.gl_area);
|
||||
}
|
||||
|
||||
// TODO: move this
|
||||
/// Change the container for the surface to `container`.
|
||||
pub fn setContainer(self: *Surface, container: Container) void {
|
||||
self.container = container;
|
||||
|
||||
// TODO: do we need to ever update our title or anything here?
|
||||
pub fn destroy(self: *Surface, alloc: Allocator) void {
|
||||
self.deinit();
|
||||
alloc.destroy(self);
|
||||
}
|
||||
|
||||
fn render(self: *Surface) !void {
|
||||
|
@ -97,7 +97,7 @@ pub fn init(self: *Tab, window: *Window, parent_: ?*CoreSurface) !void {
|
||||
.parent2 = parent_,
|
||||
});
|
||||
errdefer surface.unref();
|
||||
surface.setContainer(.{ .tab_ = self });
|
||||
surface.container = .{ .tab_ = self };
|
||||
self.elem = .{ .surface = surface };
|
||||
|
||||
// Add Surface to the Tab
|
||||
|
Reference in New Issue
Block a user