Revision 8bd3a37a229823889d73314f7d08e5afe247e22a authored by Gerardo Ganis on 03 August 2011, 12:35:55 UTC, committed by Gerardo Ganis on 03 August 2011, 12:35:55 UTC
Import patches 40435 and 40436: - Make sure that connection error messages are displayed - Fix an unwanted truncation of authentication error messages git-svn-id: http://root.cern.ch/svn/root/branches/v5-30-00-patches@40438 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 70fb49b
fileopen.C
// @(#)macros:$Id$
// Author: Axel Naumann, 2008-05-22
//
// This script gets executed when double-clicking a ROOT file (currently only on Windows).
// The file that got double clicked and opened is accessible as _file0.
void onBrowserClose() {
gApplication->Terminate(0);
}
void fileopen()
{
TBrowser *b = new TBrowser;
// or, to only browse the file:
// new TBrowser(_file0);
// Quit ROOT when the browser gets closed:
b->GetBrowserImp()->GetMainFrame()->Connect("CloseWindow()", 0, 0, "onBrowserClose()");
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...