Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
comparison FrmMainWindow.cs @ 26:3a396783bfed
Fixes #125: Tabs lose close buttons
* Use "CreateNotebookTabLabelWithClose" to set label on name change instead of setting label text (added in ibboard:r100)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 28 Aug 2009 18:47:10 +0000 |
parents | 01ddadfa9653 |
children | 83c8945edac2 |
comparison
equal
deleted
inserted
replaced
25:01ddadfa9653 | 26:3a396783bfed |
---|---|
228 UnitDisplayWidget widget; | 228 UnitDisplayWidget widget; |
229 unitToWidgetMap.TryGetValue(unit, out widget); | 229 unitToWidgetMap.TryGetValue(unit, out widget); |
230 | 230 |
231 if (widget!=null) | 231 if (widget!=null) |
232 { | 232 { |
233 unitsNotebook.SetTabLabelText(widget, newValue); | 233 unitsNotebook.SetTabLabel(widget, NotebookUtil.CreateNotebookTabLabelWithClose(unitsNotebook, widget, newValue)); |
234 } | 234 } |
235 } | 235 } |
236 | 236 |
237 private void OnUnitAdded(WarFoundryObject val) | 237 private void OnUnitAdded(WarFoundryObject val) |
238 { | 238 { |