gtk: always set the title on the underlying window when using adwaita

pull/5173/head
Jeffrey C. Ollie 2025-01-16 23:51:40 -06:00
parent 72d085525b
commit b7d76fe26f
No known key found for this signature in database
GPG Key ID: 6F86035A6D97044E
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ pub fn packStart(self: HeaderBarAdw, widget: *c.GtkWidget) void {
}
pub fn setTitle(self: HeaderBarAdw, title: [:0]const u8) void {
c.gtk_window_set_title(self.window.window, title);
if (comptime adwaita.versionAtLeast(0, 0, 0)) {
c.adw_window_title_set_title(self.title, title);
}