emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 82f818344e: Fix GNUstep build warnings


From: Po Lu
Subject: master 82f818344e: Fix GNUstep build warnings
Date: Sat, 22 Jan 2022 07:23:47 -0500 (EST)

branch: master
commit 82f818344e2525d3470266894674188fcb3c2fb5
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix GNUstep build warnings
    
    * src/nsmenu.m
    ([EmacsMenu menu:updateItem:atIndex:shouldCancel:])
    ([EmacsMenu menuHasKeyEquivalent:forEvent:target:action:])
    ([EmacsMenu numberOfItemsInMenu:]): New methods.
---
 src/nsmenu.m | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/src/nsmenu.m b/src/nsmenu.m
index 4d3c752816..cad0ff6fe1 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -777,6 +777,25 @@ prettify_key (const char *key)
 /* GNUstep seems to have a number of required methods in
    NSMenuDelegate that are optional in Cocoa.  */
 
+- (BOOL) menu: (NSMenu*) menu updateItem: (NSMenuItem*) item
+      atIndex: (NSInteger) index shouldCancel: (BOOL) shouldCancel
+{
+  return YES;
+}
+
+- (BOOL) menuHasKeyEquivalent: (NSMenu*) menu
+                    forEvent: (NSEvent*) event
+                      target: (id*) target
+                      action: (SEL*) action
+{
+  return NO;
+}
+
+- (NSInteger) numberOfItemsInMenu: (NSMenu*) menu
+{
+  return [super numberOfItemsInMenu: menu];
+}
+
 - (void) menuWillOpen:(NSMenu *)menu
 {
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]