From 332589685109e4ad30609f3db419a681cc0769ef Mon Sep 17 00:00:00 2001 From: Fons Rademakers <Fons.Rademakers@cern.ch> Date: Wed, 9 Jul 2003 00:53:22 +0000 Subject: [PATCH] fix some comment typos. git-svn-id: http://root.cern.ch/svn/root/trunk@6864 27541ba8-7e3a-0410-8455-c3a389f83636 --- gui/inc/TGMenu.h | 4 ++-- gui/src/TGMenu.cxx | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gui/inc/TGMenu.h b/gui/inc/TGMenu.h index a6d0f86aadb..f8dcc9df594 100644 --- a/gui/inc/TGMenu.h +++ b/gui/inc/TGMenu.h @@ -1,4 +1,4 @@ -// @(#)root/gui:$Name: $:$Id: TGMenu.h,v 1.15 2003/05/28 11:55:31 rdm Exp $ +// @(#)root/gui:$Name: $:$Id: TGMenu.h,v 1.16 2003/07/08 19:42:07 brun Exp $ // Author: Fons Rademakers 09/01/98 /************************************************************************* @@ -270,7 +270,7 @@ protected: TList *fTitles; // list of menu titles Cursor_t fDefaultCursor; // right pointing cursor Bool_t fStick; // stick mode (popup menu stays sticked on screen) - TList *fTrash; // garabge + TList *fTrash; // garbage virtual void AddFrameBefore(TGFrame *f, TGLayoutHints *l = 0, TGPopupMenu *before = 0); diff --git a/gui/src/TGMenu.cxx b/gui/src/TGMenu.cxx index c1a4dc9f516..6493a905ad3 100644 --- a/gui/src/TGMenu.cxx +++ b/gui/src/TGMenu.cxx @@ -1,4 +1,4 @@ -// @(#)root/gui:$Name: $:$Id: TGMenu.cxx,v 1.13 2003/05/28 11:55:31 rdm Exp $ +// @(#)root/gui:$Name: $:$Id: TGMenu.cxx,v 1.14 2003/07/08 19:42:07 brun Exp $ // Author: Fons Rademakers 09/01/98 /************************************************************************* @@ -157,7 +157,7 @@ void TGMenuBar::AddPopup(const char *s, TGPopupMenu *menu, TGLayoutHints *l, TGPopupMenu *TGMenuBar::AddPopup(const TString &s, Int_t padleft, Int_t padright, Int_t padtop, Int_t padbottom) { - // Add popup menu to menu bar. Do not delete returned popup-menu + // Add popup menu to menu bar. Do not delete returned popup-menu ULong_t hints = kLHintsTop; @@ -166,7 +166,8 @@ TGPopupMenu *TGMenuBar::AddPopup(const TString &s, Int_t padleft, Int_t padright if (padtop) hints |= kLHintsBottom; if (padbottom) hints |= kLHintsTop; - TGLayoutHints *l = new TGLayoutHints(hints,padleft,padright,0,0); + TGLayoutHints *l = new TGLayoutHints(hints, padleft, padright, + padtop, padbottom); fTrash->Add(l); TGPopupMenu *menu = new TGPopupMenu(fClient->GetRoot()); -- GitLab