• Jan Djärv's avatar
    * nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:setDelegate. · d2d699ac
    Jan Djärv authored
    (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
    d2d699ac
nsterm.m 219 KB