Skip to content
Snippets Groups Projects
Commit cfe3977d authored by Ilka Antcheva's avatar Ilka Antcheva
Browse files

- do not emit signals when selecting the first entry in ctors of...

- do not emit signals when selecting the first entry in ctors of TGFontTypeComboBox, TGLineStyleComboBox and TGLineWidthComboBox


git-svn-id: http://root.cern.ch/svn/root/trunk@15721 27541ba8-7e3a-0410-8455-c3a389f83636
parent 29291240
No related branches found
No related tags found
No related merge requests found
// @(#)root/gui:$Name: $:$Id: TGComboBox.cxx,v 1.45 2006/06/01 09:13:17 antcheva Exp $ // @(#)root/gui:$Name: $:$Id: TGComboBox.cxx,v 1.46 2006/07/03 16:10:45 brun Exp $
// Author: Fons Rademakers 13/01/98 // Author: Fons Rademakers 13/01/98
/************************************************************************* /*************************************************************************
...@@ -620,7 +620,7 @@ TGLineStyleComboBox::TGLineStyleComboBox(const TGWindow *p, Int_t id, ...@@ -620,7 +620,7 @@ TGLineStyleComboBox::TGLineStyleComboBox(const TGWindow *p, Int_t id,
AddEntry(new TGLineLBEntry(GetListBox()->GetContainer(), i, Form("%d",i), 0, i), AddEntry(new TGLineLBEntry(GetListBox()->GetContainer(), i, Form("%d",i), 0, i),
new TGLayoutHints(kLHintsTop | kLHintsExpandX)); new TGLayoutHints(kLHintsTop | kLHintsExpandX));
Select(1); // to have first entry selected Select(1, kFALSE); // to have first entry selected
SetWindowName(); SetWindowName();
} }
...@@ -660,7 +660,7 @@ TGLineWidthComboBox::TGLineWidthComboBox(const TGWindow *p, Int_t id, ...@@ -660,7 +660,7 @@ TGLineWidthComboBox::TGLineWidthComboBox(const TGWindow *p, Int_t id,
for (Int_t i = 1; i < 16; i++) for (Int_t i = 1; i < 16; i++)
AddEntry(new TGLineLBEntry(GetListBox()->GetContainer(), i, Form("%d",i), i, 0), AddEntry(new TGLineLBEntry(GetListBox()->GetContainer(), i, Form("%d",i), i, 0),
new TGLayoutHints(kLHintsTop | kLHintsExpandX)); new TGLayoutHints(kLHintsTop | kLHintsExpandX));
Select(1); // to have first entry selected Select(1, kFALSE); // to have first entry selected
SetWindowName(); SetWindowName();
} }
...@@ -727,7 +727,7 @@ TGFontTypeComboBox::TGFontTypeComboBox(const TGWindow *p, Int_t id, ...@@ -727,7 +727,7 @@ TGFontTypeComboBox::TGFontTypeComboBox(const TGWindow *p, Int_t id,
if (noFonts < kMaxFonts - 1) if (noFonts < kMaxFonts - 1)
; ;
fFonts[noFonts] = 0; fFonts[noFonts] = 0;
Select(1); // to have first entry selected Select(1, kFALSE); // to have first entry selected
SetWindowName(); SetWindowName();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment