From f9457e76ab367ffdae61eee21b76eea1f89d26b1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 24 Feb 2023 12:17:02 -0800 Subject: [PATCH] gtk: set title stub --- src/apprt/gtk.zig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/apprt/gtk.zig b/src/apprt/gtk.zig index af74b020a..530dbbe8c 100644 --- a/src/apprt/gtk.zig +++ b/src/apprt/gtk.zig @@ -378,7 +378,13 @@ pub const Surface = struct { } pub fn setTitle(self: *Surface, slice: [:0]const u8) !void { - _ = self; + const root = c.gtk_widget_get_root(@ptrCast( + *c.GtkWidget, + self.gl_area, + )); + + // TODO: we need a way to check if the type is a window + _ = root; _ = slice; }