/[emacs]/emacs/src/macmenu.c
ViewVC logotype

Diff of /emacs/src/macmenu.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by tamm, Thu Aug 26 18:43:29 2004 UTC revision 1.17 by tamm, Mon Aug 30 18:06:21 2004 UTC
# Line 1807  mac_menu_show (f, x, y, for_click, keyma Line 1807  mac_menu_show (f, x, y, for_click, keyma
1807    /* Get the refcon to find the correct item*/    /* Get the refcon to find the correct item*/
1808    if (menu_item_selection)    if (menu_item_selection)
1809      {      {
1810        menu = GetMenuHandle (HiWord (menu_item_choice));        MenuHandle sel_menu = GetMenuHandle (HiWord (menu_item_choice));
1811        if (menu) {        if (sel_menu) {
1812          GetMenuItemRefCon (menu, menu_item_selection, &refcon);          GetMenuItemRefCon (sel_menu, menu_item_selection, &refcon);
1813        }        }
1814      }      }
1815    
# Line 1831  mac_menu_show (f, x, y, for_click, keyma Line 1831  mac_menu_show (f, x, y, for_click, keyma
1831    {    {
1832      int i = MIN_POPUP_SUBMENU_ID;      int i = MIN_POPUP_SUBMENU_ID;
1833      MenuHandle submenu = GetMenuHandle (i);      MenuHandle submenu = GetMenuHandle (i);
1834      while (menu != NULL)      while (submenu != NULL)
1835        {        {
1836          DeleteMenu (i);          DeleteMenu (i);
1837          DisposeMenu (menu);          DisposeMenu (submenu);
1838          menu = GetMenuHandle (++i);          submenu = GetMenuHandle (++i);
1839        }        }
1840    }    }
1841    

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26