From dcc3c63c6e6f2536341b22cb428ef4755a171e6b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 9 Mar 2023 11:27:00 +0800 Subject: [PATCH] Update Android port * java/org/gnu/emacs/EmacsContextMenu.java (EmacsContextMenu) (addItem): New argument `tooltip'. --- java/org/gnu/emacs/EmacsContextMenu.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/java/org/gnu/emacs/EmacsContextMenu.java b/java/org/gnu/emacs/EmacsContextMenu.java index dec5e148a8e..0553ff9d4a3 100644 --- a/java/org/gnu/emacs/EmacsContextMenu.java +++ b/java/org/gnu/emacs/EmacsContextMenu.java @@ -139,11 +139,14 @@ public final class EmacsContextMenu If this is not a submenu and ISCHECKABLE is set, make the item checkable. Likewise, if ISCHECKED is set, make the item - checked. */ + checked. + + If TOOLTIP is non-NULL, set the menu item tooltip to TOOLTIP. */ public void addItem (int itemID, String itemName, boolean isEnabled, - boolean isCheckable, boolean isChecked) + boolean isCheckable, boolean isChecked, + String tooltip) { Item item; @@ -153,6 +156,7 @@ public final class EmacsContextMenu item.isEnabled = isEnabled; item.isCheckable = isCheckable; item.isChecked = isChecked; + item.tooltip = tooltip; menuItems.add (item); } -- 2.39.2