Fix pop-up menu position calculation
Fix tooltip on unpin button

Change tooltip according to pin button state.

Fixes Bug 721357.
Fix compile time warnings
Update notes list when back from note

Fixes bug 721358.