1
// Add a 'fixed width' item to the font styles menu.
2
// (C) 2006 Ryan Lortie <desrt@desrt.ca>, LGPL 2.1 or later.
11
namespace Tomboy.FixedWidth
13
public class FixedWidthNoteAddin : NoteAddin
17
public override void Initialize ()
19
// If a tag of this name already exists, don't install.
20
if (Note.TagTable.Lookup ("monospace") == null) {
21
tag = new FixedWidthTag ();
22
Note.TagTable.Add (tag);
26
public override void Shutdown ()
28
// Remove the tag only if we installed it.
30
Note.TagTable.Remove (tag);
33
public override void OnNoteOpened ()
35
// Add here instead of in Initialize to avoid creating unopened
36
// notes' windows/buffers.
37
AddTextMenuItem (new FixedWidthMenuItem (this));