mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 01:06:08 +03:00
apprt/gtk: tweaks
This commit is contained in:
@ -478,11 +478,10 @@ pub fn onConfigReloaded(self: *Window) void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn sendToast(self: *Window, title: [:0]const u8) void {
|
fn sendToast(self: *Window, title: [:0]const u8) void {
|
||||||
if (self.toast_overlay) |toast_overlay| {
|
const toast_overlay = self.toast_overlay orelse return;
|
||||||
const toast = c.adw_toast_new(title);
|
const toast = c.adw_toast_new(title);
|
||||||
c.adw_toast_set_timeout(toast, 3);
|
c.adw_toast_set_timeout(toast, 3);
|
||||||
c.adw_toast_overlay_add_toast(@ptrCast(toast_overlay), toast);
|
c.adw_toast_overlay_add_toast(@ptrCast(toast_overlay), toast);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note: we MUST NOT use the GtkButton parameter because gtkActionNewTab
|
// Note: we MUST NOT use the GtkButton parameter because gtkActionNewTab
|
||||||
|
Reference in New Issue
Block a user