diff --git a/gui/inc/TGMenu.h b/gui/inc/TGMenu.h index a6d0f86aadb9455148a447bb5b5f8ec8c765e090..f8dcc9df594c3db6d1af87295b0e3078351f6fee 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 c1a4dc9f516ca7fdc3be51cd60b5bd4d41df1f06..6493a905ad38fceb43e4e980a97cba57ccf3128f 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());