Changeset 3069 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 02/09/04 15:44:04 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MBrowser.cc
r3021 r3069 137 137 138 138 const TGPicture *pic0 = fList->GetPicture("magic_t.xpm"); 139 TGTreeLBEntry *entry = new TGTreeLBEntry(dir->GetListBox()->GetContainer(), 140 new TGString("/data/MAGIC"), pic0, 6000, 141 new TGString("/data/MAGIC")); 142 TGLayoutHints *laylb = new TGLayoutHints(kLHintsLeft|kLHintsTop, 14, 0, 0, 0); 143 dir->AddEntry(entry, laylb); 144 // Note necessary - deleted in ~TGLBContainer: fList->Add(laylb); 145 fList->Add(entry); 139 if (!pic0) 140 { 141 TGTreeLBEntry *entry = new TGTreeLBEntry(dir->GetListBox()->GetContainer(), 142 new TGString("/data/MAGIC"), pic0, 6000, 143 new TGString("/data/MAGIC")); 144 TGLayoutHints *laylb = new TGLayoutHints(kLHintsLeft|kLHintsTop, 14, 0, 0, 0); 145 dir->AddEntry(entry, laylb); 146 // Note necessary - deleted in ~TGLBContainer: fList->Add(laylb); 147 fList->Add(entry); 148 } 146 149 147 150 //
Note:
See TracChangeset
for help on using the changeset viewer.