Changeset 13366 for trunk


Ignore:
Timestamp:
04/17/12 15:53:03 (13 years ago)
Author:
tbretz
Message:
According to the root docu some GetRoot() calls should be GetDefaultRoot()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MStatusDisplay.cc

    r12857 r13366  
    255255    // File Menu
    256256    //
    257     MGPopupMenu *filemenu = new MGPopupMenu(gClient->GetRoot());
     257    MGPopupMenu *filemenu = new MGPopupMenu(gClient->GetDefaultRoot());
    258258    filemenu->AddEntry("New &Canvas",       kFileCanvas);
    259259    filemenu->AddEntry("New &Browser",      kFileBrowser);
     
    262262
    263263    const TString fname(MString::Format("Save %s.", gROOT->GetName()));
    264     MGPopupMenu *savemenu = new MGPopupMenu(gClient->GetRoot());
     264    MGPopupMenu *savemenu = new MGPopupMenu(gClient->GetDefaultRoot());
    265265    savemenu->AddEntry(MString::Format("%s&ps",  fname.Data()),  kFileSaveAsPS);
    266266    savemenu->AddEntry(MString::Format("%sp&df", fname.Data()),  kFileSaveAsPDF);
     
    296296    // Tab Menu
    297297    //
    298     MGPopupMenu *tabmenu = new MGPopupMenu(gClient->GetRoot());
     298    MGPopupMenu *tabmenu = new MGPopupMenu(gClient->GetDefaultRoot());
    299299    tabmenu->AddEntry("Next [&+]",          kTabNext);
    300300    tabmenu->AddEntry("Previous [&-]",      kTabPrevious);
     
    302302
    303303    const TString fname2(MString::Format("Save %s-i.", gROOT->GetName()));
    304     MGPopupMenu *savemenu2 = new MGPopupMenu(gClient->GetRoot());
     304    MGPopupMenu *savemenu2 = new MGPopupMenu(gClient->GetDefaultRoot());
    305305    savemenu2->AddEntry(MString::Format("%s&ps",  fname2.Data()),  kTabSaveAsPS);
    306306    savemenu2->AddEntry(MString::Format("%sp&df", fname2.Data()),  kTabSaveAsPDF);
     
    331331    // Loop Menu
    332332    //
    333     MGPopupMenu *loopmenu = new MGPopupMenu(gClient->GetRoot());
     333    MGPopupMenu *loopmenu = new MGPopupMenu(gClient->GetDefaultRoot());
    334334    loopmenu->AddEntry("&Pause",       kLoopPause);
    335335    loopmenu->AddEntry("Single S&tep", kLoopStep);
     
    343343    // Loop Menu
    344344    //
    345     MGPopupMenu *sizemenu = new MGPopupMenu(gClient->GetRoot());
     345    MGPopupMenu *sizemenu = new MGPopupMenu(gClient->GetDefaultRoot());
    346346    sizemenu->AddEntry("Fit to 640x&480",   kSize640);
    347347    sizemenu->AddEntry("Fit to 768x&576",   kSize768);
     
    359359    // Log Menu
    360360    //
    361     MGPopupMenu *logmenu = new MGPopupMenu(gClient->GetRoot());
     361    MGPopupMenu *logmenu = new MGPopupMenu(gClient->GetDefaultRoot());
    362362    logmenu->AddEntry("&Copy Selected", kLogCopy);
    363363    logmenu->AddEntry("Cl&ear all",     kLogClear);
Note: See TracChangeset for help on using the changeset viewer.