]> git.eshelyaron.com Git - emacs.git/commit
* nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:setDelegate.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 11 Aug 2013 14:57:12 +0000 (16:57 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 11 Aug 2013 14:57:12 +0000 (16:57 +0200)
commitd2d699ac519599385b2865627db065c0fbfd38f3
tree9f21ec7de67b36c79ef5f41259e7d33e90e26b7f
parent7ec326db1dfe07523c8e22fb98f8aed6c8f2ae7e
* nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:setDelegate.
(x_activate_menubar): Update the whole menu.
(trackingNotification:): Call ns_check_menu_open if tracking ends.
(menuWillOpen:): Increment trackingMenu.  For OSX <= 10.6, exit if
current event is not NSSystemDefined.
Call ns_check_menu_open only if trackingMenu is 2.
(menuDidClose:): New method, decrease trackingMenu.
(fillWithWidgetValue:setDelegate:): New method.
(fillWithWidgetValue:): Call the above.

* nsterm.h (EmacsMenu): Add fillWithWidgetValue:setDelegate:

* nsterm.m (menu_pending_title, ns_get_pending_menu_title): Remove.
(ns_check_menu_open): Handle menu == nil.  Remove assignment to
menu_pending_title.

Fixes: debbugs:15001
src/ChangeLog
src/nsmenu.m
src/nsterm.h
src/nsterm.m