diff options
author | Marius Ungureanu <therzok@gmail.com> | 2017-05-04 16:21:54 +0300 |
---|---|---|
committer | Marius Ungureanu <therzok@gmail.com> | 2017-05-04 16:21:54 +0300 |
commit | 6e77a0504dd11a860b516fb4838fd1be05642c0a (patch) | |
tree | 533ca41435a17df6bc735dc8b3731ee2dc990318 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking | |
parent | 7ac5edc9c801aed3729ddd0194fd9953d5c1b846 (diff) |
Guard against more NREs
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItemTitleTab.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItemTitleTab.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItemTitleTab.cs index e4674dd9e2..1e385e7637 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItemTitleTab.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItemTitleTab.cs @@ -154,11 +154,13 @@ namespace MonoDevelop.Components.Docking if (!(Parent is TabStrip.TabStripBox)) labelWidget.Xalign = 0; + }
+
+ if (tabIcon != null) {
+ tabIcon.Image = tabIcon.Image.WithAlpha (active ? 1.0 : inactiveIconAlpha);
+ tabIcon.Visible = visualStyle.ShowPadTitleIcon.Value; } - - tabIcon.Image = tabIcon.Image.WithAlpha (active ? 1.0 : inactiveIconAlpha); - tabIcon.Visible = visualStyle.ShowPadTitleIcon.Value; - + if (IsRealized && labelWidget?.Visible == true) { var font = FontService.SansFont.CopyModified (null, Pango.Weight.Bold); font.AbsoluteSize = Pango.Units.FromPixels (11); |