From 36648ae397428d9256e61a072771c5e62cd99682 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 6 Jul 2024 10:29:23 -0700 Subject: [PATCH] apprt: stubs for mouseOverLink --- src/apprt/glfw.zig | 6 ++++++ src/apprt/gtk/Surface.zig | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/apprt/glfw.zig b/src/apprt/glfw.zig index 911eb6f5e..81063bc69 100644 --- a/src/apprt/glfw.zig +++ b/src/apprt/glfw.zig @@ -649,6 +649,12 @@ pub const Surface = struct { self.cursor = new; } + pub fn mouseOverLink(self: *Surface, uri: ?[]const u8) void { + // We don't do anything in GLFW. + _ = self; + _ = uri; + } + /// Set the visibility of the mouse cursor. pub fn setMouseVisibility(self: *Surface, visible: bool) void { self.window.setInputModeCursor(if (visible) .normal else .hidden); diff --git a/src/apprt/gtk/Surface.zig b/src/apprt/gtk/Surface.zig index 1ee433db9..096441229 100644 --- a/src/apprt/gtk/Surface.zig +++ b/src/apprt/gtk/Surface.zig @@ -879,6 +879,12 @@ pub fn setMouseVisibility(self: *Surface, visible: bool) void { c.gtk_widget_set_cursor(@ptrCast(self.gl_area), self.app.cursor_none); } +pub fn mouseOverLink(self: *Surface, uri: ?[]const u8) void { + // TODO: GTK + _ = self; + _ = uri; +} + pub fn clipboardRequest( self: *Surface, clipboard_type: apprt.Clipboard,