diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2014-04-04 02:21:50 +0400 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2014-04-04 02:22:46 +0400 |
commit | f701f13d9b67b055d2bf5ddc16bdf3e90e0ded64 (patch) | |
tree | 09fa5d03e4aa52a1f64f34bd68db9d85194a343d /main/src/addins/ChangeLogAddIn | |
parent | 0f5103d80a46275085326b03ca9bb6d6a33e4950 (diff) |
Centralize some font handling
Diffstat (limited to 'main/src/addins/ChangeLogAddIn')
-rw-r--r-- | main/src/addins/ChangeLogAddIn/AddLogEntryDialog.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/src/addins/ChangeLogAddIn/AddLogEntryDialog.cs b/main/src/addins/ChangeLogAddIn/AddLogEntryDialog.cs index 4a318731fe..9b96e905d6 100644 --- a/main/src/addins/ChangeLogAddIn/AddLogEntryDialog.cs +++ b/main/src/addins/ChangeLogAddIn/AddLogEntryDialog.cs @@ -31,6 +31,7 @@ using System.Collections.Generic; using Gtk; using MonoDevelop.Ide; using MonoDevelop.Components; +using MonoDevelop.Ide.Fonts; namespace MonoDevelop.ChangeLogAddIn { @@ -46,8 +47,7 @@ namespace MonoDevelop.ChangeLogAddIn { Build (); - Pango.FontDescription font = Pango.FontDescription.FromString (DesktopService.DefaultMonospaceFont); - textview.ModifyFont (font); + textview.ModifyFont (FontService.MonospaceFont); textview.WrapMode = WrapMode.None; textview.AcceptsTab = true; Pango.TabArray tabs = new Pango.TabArray (1, true); @@ -56,7 +56,6 @@ namespace MonoDevelop.ChangeLogAddIn textview.SizeRequested += delegate { textview.WidthRequest = GetStringWidth (String.Empty.PadRight (80)); }; - font.Dispose (); store = new ListStore (typeof(ChangeLogEntry), typeof(Xwt.Drawing.Image), typeof(string)); fileList.Model = store; |