Commit 5e097e01 authored by Jérémie Dudouet's avatar Jérémie Dudouet
Browse files

Set Xft environment

parent bd275d49
......@@ -906,34 +906,34 @@ Bool_t CXCanvas::HandleKey(Int_t px, Int_t py)
case kKey_F9:
gPad->SetLogx(!gPad->GetLogx());
Update();
Modified();
Update();
break;
case kKey_F10:
gPad->SetLogy(!gPad->GetLogy());
Update();
Modified();
Update();
break;
case kKey_F11:
gPad->SetLogz(!gPad->GetLogz());
Update();
Modified();
Update();
break;
case kKey_F12:
if (fSelected->InheritsFrom("TAxis")) {
((TAxis*)fSelected)->UnZoom();
Update();
Modified();
Update();
}
else if (FindHisto() && (FindHisto()->InheritsFrom("TH1") || FindHisto()->InheritsFrom("TH1D") ) ) {
if(fMainWindow->IsCtrlOn() == false){
((TH1*)FindHisto())->GetXaxis()->UnZoom();
((TH1*)FindHisto())->GetYaxis()->UnZoom();
gPad->Update();
gPad->Modified();
gPad->Update();
}
else{
TObject *obj = nullptr;
......
......@@ -59,7 +59,7 @@ CXFileList::CXFileList(const TGCompositeFrame *MotherFrame, UInt_t w, UInt_t h)
fMenu->AddEntry("Lar&ge Icons",kLVLargeIcons);
fMenu->AddEntry("S&mall Icons",kLVSmallIcons);
fMenu->AddEntry("&List", kLVList);
fMenu->AddEntry("&Details", kLVDetails);
// fMenu->AddEntry("&Details", kLVDetails);
fMenu->Connect("Activated(Int_t)","CXFileList",this,"DoMenu(Int_t)");
TGHorizontalFrame *h3 = new TGHorizontalFrame(fv2,10,10);
......@@ -194,7 +194,7 @@ void CXFileList::DisplayList(TList *list)
// fContents->AddFile(gSystem->WorkingDirectory());
fContents->AddItem(entry);
fContents->SetPagePosition(0,0);
fContents->SetColHeaders("Name","Title");
// fContents->SetColHeaders("Name","Title");
TIter next(list);
TObject *key;
......
......@@ -35,6 +35,7 @@ int main(int argc, char **argv)
return 1;
}
gEnv->SetValue("Gui.IconPath",Form("%s/icons:%s/icons",getenv("ROOTSYS"),getenv("GWSYS")));
gEnv->SetValue("X11.UseXft","yes");
TInterruptHandler *fxInterruptHandler = new TInterruptHandler();
fxInterruptHandler->Add();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment