public void Delete ()
{
is_deleting = true;
save_timeout.Cancel ();
// Remove the note from all the tags
foreach (Tag tag in Tags) {
RemoveTag (tag);
}
if (window != null) {
window.Hide ();
window.Destroy ();
}
// Remove note URI from GConf entry menu_pinned_notes
IsPinned = false;
}