1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 00:51:50 -08:00

Update Android port

* java/org/gnu/emacs/EmacsContextMenu.java (EmacsContextMenu)
(addItem): New argument `tooltip'.
This commit is contained in:
Po Lu 2023-03-09 11:27:00 +08:00
parent 55634b5f79
commit dcc3c63c6e

View file

@ -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);
}