From 681e9fa213a41196854cf2512f84984b9f029923 Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot <Bertrand.Bellenot@cern.ch> Date: Mon, 13 Aug 2012 10:01:30 +0000 Subject: [PATCH] Improve the TGFileDialog class documentation git-svn-id: http://root.cern.ch/svn/root/trunk@45565 27541ba8-7e3a-0410-8455-c3a389f83636 --- gui/gui/src/TGFileDialog.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/gui/src/TGFileDialog.cxx b/gui/gui/src/TGFileDialog.cxx index fedcde4f359..f3cd439bd51 100644 --- a/gui/gui/src/TGFileDialog.cxx +++ b/gui/gui/src/TGFileDialog.cxx @@ -101,6 +101,10 @@ TGFileDialog::TGFileDialog(const TGWindow *p, const TGWindow *main, { // Create a file selection dialog. Depending on the dlg_type it can be // used for opening or saving a file. + // About the first two arguments, p is the parent Window, usually the + // desktop (root) window, and main is the main (TGMainFrame) application + // window (the one opening the dialog), onto which the dialog is + // usually centered, and which is waiting for it to close. SetCleanup(kDeepCleanup); Connect("CloseWindow()", "TGFileDialog", this, "CloseWindow()"); -- GitLab