From: Po Lu Date: Thu, 9 Mar 2023 03:27:00 +0000 (+0800) Subject: Update Android port X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dcc3c63c6e6f2536341b22cb428ef4755a171e6b;p=emacs.git Update Android port * java/org/gnu/emacs/EmacsContextMenu.java (EmacsContextMenu) (addItem): New argument `tooltip'. --- 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); }