Changeset 19291 for trunk/Mars/mbase
- Timestamp:
- 10/24/18 20:04:36 (6 years ago)
- Location:
- trunk/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mbase/MGMenu.cc
r6824 r19291 30 30 #include "MGMenu.h" 31 31 32 32 #if ROOT_VERSION_CODE < ROOT_VERSION(6,00,00) 33 33 MGMenuEntry::MGMenuEntry(TGMenuEntry *ent) 34 34 { 35 35 memcpy(this, ent, sizeof(*ent)); 36 36 } 37 #endif 37 38 38 39 // ------------------------------------------------------------- … … 80 81 frame->BindKey(w, GetKeyCode(el), kKeyMod1Mask); 81 82 if (el->GetType()==kMenuPopup) 82 MGMenuEntry(el).GetPopup()->BindKeys(w, frame);83 static_cast<MGPopupMenu*>(MGMenuEntry(el).GetPopup())->BindKeys(w, frame); 83 84 continue; 84 85 } -
trunk/Mars/mbase/MGMenu.h
r6824 r19291 8 8 class MGPopupMenu; 9 9 10 #if ROOT_VERSION_CODE < ROOT_VERSION(6,00,00) 10 11 class MGMenuEntry : public TGMenuEntry 11 12 { … … 24 25 void *GetUserData() { return fUserData; } 25 26 }; 27 #else 28 #define MGMenuEntry(a) (*a) 29 #endif 26 30 27 31 class MGPopupMenu : public TGPopupMenu
Note:
See TracChangeset
for help on using the changeset viewer.