protected override bool OnButtonPressEvent (Gdk.EventButton ev)
{
if (pin_img != null &&
ev.X >= pin_img.Allocation.X &&
ev.X < pin_img.Allocation.X + pin_img.Allocation.Width) {
pinned = note.IsPinned = !pinned;
pin_img.Pixbuf = pinned ? pindown : pinup;
inhibit_activate = true;
return true;
}
return base.OnButtonPressEvent (ev);
}