Tasque.TaskCalendar.HideCalendar C# (CSharp) Method

HideCalendar() public method

public HideCalendar ( bool update ) : void
update bool
return void
        public void HideCalendar(bool update)
        {
            if (popup != null) {
                Grab.Remove(popup);
                Gdk.Pointer.Ungrab(CURRENT_TIME);
                Gdk.Keyboard.Ungrab(CURRENT_TIME);

                popup.Destroy();
                popup = null;
            }

            if (update) {
                date = cal.GetDate();
                // FIXME: If this is ever moved to its own library
                // this reference to Tomboy will obviously have to
                // be removed.
                // Label = Utilities.GetPrettyPrintDate (date, show_time);
            }

            //Active = false;
        }