Ignore:
Timestamp:
03/15/05 17:52:23 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MGMenu.cc

    r2494 r6824  
    185185Bool_t MGMenuBar::HandleKey(Event_t *event)
    186186{
     187#if ROOT_VERSION_CODE < ROOT_VERSION(4,02,00)
    187188    //
    188189    // If this isn't a pressed key do nothing
     
    222223        return kTRUE;
    223224    }
     225#endif
    224226
    225227    return TGMenuBar::HandleKey(event);
    226228}
     229
     230void MGMenuBar::BindKeys(Bool_t b)
     231{
     232#if ROOT_VERSION_CODE >= ROOT_VERSION(4,02,00)
     233    TGMenuBar::BindKeys(b);
     234#endif
     235}  // root>=4.02.00
  • trunk/MagicSoft/Mars/mbase/MGMenu.h

    r6818 r6824  
    4747
    4848    void BindKeys(TGMainFrame *frame);                   // root<=3.10.02
    49     void BindKeys(Bool_t b) { TGMenuBar::BindKeys(b); }  // root>=4.02.00
     49    void BindKeys(Bool_t b);
    5050
    5151    Bool_t HandleKey(Event_t *event);
Note: See TracChangeset for help on using the changeset viewer.