diff options
author | Adrian Robert <Adrian.B.Robert@gmail.com> | 2008-08-01 14:01:08 +0000 |
---|---|---|
committer | Adrian Robert <Adrian.B.Robert@gmail.com> | 2008-08-01 14:01:08 +0000 |
commit | 150349607cf648e78d34aa16ef1d43d774bc6044 (patch) | |
tree | 7d57cf5f3e5163c7ea3019b9527409df771efe42 /src/nsmenu.m | |
parent | 27ec92c98304e2b61dc20a1db65972b0eb00d4cc (diff) | |
download | emacs-150349607cf648e78d34aa16ef1d43d774bc6044.tar.gz |
clear warnings and clean up NS port
Diffstat (limited to 'src/nsmenu.m')
-rw-r--r-- | src/nsmenu.m | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m index 9d17da43596..822aa94efa9 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m @@ -53,8 +53,6 @@ int menu_trace_num = 0; #include "nsmenu_common.c" #endif -extern struct widget_value; - extern Lisp_Object Qundefined, Qmenu_enable, Qmenu_bar_update_hook; extern Lisp_Object QCtoggle, QCradio; @@ -594,9 +592,9 @@ name_is_separator (name) return [NSString stringWithFormat: @"%c", tpos[2]]; } -- (id <NSMenuItem>)addItemWithWidgetValue: (void *)wvptr +- (NSMenuItem *)addItemWithWidgetValue: (void *)wvptr { - id <NSMenuItem> item; + NSMenuItem *item; widget_value *wv = (widget_value *)wvptr; if (name_is_separator (wv->name)) @@ -663,7 +661,7 @@ name_is_separator (name) /* add new contents */ for (; wv != NULL; wv = wv->next) { - id <NSMenuItem> item = [self addItemWithWidgetValue: wv]; + NSMenuItem *item = [self addItemWithWidgetValue: wv]; if (wv->contents) { @@ -691,10 +689,9 @@ name_is_separator (name) - (EmacsMenu *)addSubmenuWithTitle: (char *)title forFrame: (struct frame *)f { NSString *titleStr = [NSString stringWithUTF8String: title]; - id <NSMenuItem> item - = [self addItemWithTitle: titleStr - action: nil /*@selector (menuDown:) */ - keyEquivalent: @""]; + NSMenuItem *item = [self addItemWithTitle: titleStr + action: nil /*@selector (menuDown:) */ + keyEquivalent: @""]; EmacsMenu *submenu = [[EmacsMenu alloc] initWithTitle: titleStr frame: f]; [self setSubmenu: submenu forItem: item]; [submenu release]; @@ -1107,7 +1104,7 @@ ns_popup_menu (Lisp_Object position, Lisp_Object menu) #endif wv_title->name = (char *) SDATA (title); - wv_title->enabled = NULL; + wv_title->enabled = NO; wv_title->button_type = BUTTON_TYPE_NONE; wv_title->help = Qnil; wv_title->next = wv_sep; |