Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions main/src/rootbrowse.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "logging.hxx"
#include "optparse.hxx"

#include <TApplication.h>
#include <TRint.h>
#include <TBrowser.h>
#include <TError.h>
#include <TFile.h>
Expand Down Expand Up @@ -106,7 +106,7 @@ int main(int argc, char **argv)

// NOTE: we need to instantiate TApplication ourselves, otherwise TBrowser
// will create a batch application that cannot show graphics.
TApplication app("rootbrowse", nullptr, nullptr);
TRint app("rootbrowse", nullptr, nullptr);

if (!args.fWeb.empty())
gROOT->SetWebDisplay(std::string(args.fWeb).c_str());
Expand All @@ -130,11 +130,11 @@ int main(int argc, char **argv)
// For classic graphics: ensure rootbrowse quits when the window is closed
if (auto imp = browser->GetBrowserImp()) {
if (auto mainframe = imp->GetMainFrame()) {
mainframe->Connect("CloseWindow()", "TApplication", &app, "Terminate()");
mainframe->Connect("CloseWindow()", "TRint", &app, "Terminate()");
}
}

std::cout << "Press ctrl+c to exit.\n";
std::cout << ".q to exit.\n";
Comment thread
silverweed marked this conversation as resolved.
while (!gROOT->IsInterrupted() && !gSystem->ProcessEvents()) {
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
Expand Down
Loading