VirtualBox

Changeset 2696 in kBuild


Ignore:
Timestamp:
Sep 9, 2013 3:20:20 PM (12 years ago)
Author:
bird
Message:

kdev.e: Trying to work around timer issue on 18.0.x by not using any timers and skipping the whole menu bit on OS X.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VSlickMacros/kdev.e

    r2685 r2696  
    8989//#pragma option(strict,on)
    9090/*#else: Version 4.0 (OS/2) */
     91#endif
     92
     93#ifndef __MACOSX__
     94 #define KDEV_WITH_MENU
    9195#endif
    9296
     
    29852989*   Menu and Menu commands                                                     *
    29862990*******************************************************************************/
     2991#ifdef KDEV_WITH_MENU
     2992#if __VERSION__ < 18.0 /* Something with timers are busted, so excusing my code. */
    29872993static int  iTimer = 0;
     2994#endif
    29882995static int  mhkDev = 0;
    29892996static int  mhCode = 0;
     
    29973004static k_menu_create()
    29983005{
     3006# if __VERSION__ < 18.0 /* Something with timers are busted, so excusing my code. */
    29993007    if (arg(1) == 'timer')
    30003008        _kill_timer(iTimer);
     3009# endif
    30013010    menu_handle = _mdi.p_menu_handle;
    30023011    menu_index  = find_index(_cur_mdi_menu,oi2type(OI_MENU));
     
    32583267}
    32593268*/
     3269
     3270
     3271#endif /* KDEV_WITH_MENU */
    32603272
    32613273
     
    36603672    /* do init */
    36613673    k_styles_create();
     3674#ifdef KDEV_WITH_MENU
    36623675    k_menu_create();
     3676# if __VERSION__ < 18.0 /* Something with timers are busted, so excusing my code. */
    36633677    iTimer = _set_timer(1000, k_menu_create, "timer");
     3678# endif
    36643679    /* createMyColorSchemeAndUseIt();*/
    3665 }
    3666 
     3680#endif
     3681}
     3682
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette