public GtkNotificationAreaBox(BaseClientWindow window) { Visible = false; IconName = (IconThemeUtils.HasIcon("banshee-panel")) ? "banshee-panel" : ServiceStack.Application.IconName; HasTooltip = true; Activate += delegate { OnActivated(); }; PopupMenu += delegate { OnPopupMenuEvent(); }; _popup = new TrackInfoPopup(); }
private void HidePopup() { if (popup == null) { return; } popup.Hide(); popup.Dispose(); popup = null; }
public GtkNotificationAreaBox(BaseClientWindow window) { Visible = false; IconName = (IconThemeUtils.HasIcon ("banshee-panel")) ? "banshee-panel" : Banshee.ServiceStack.Application.IconName; HasTooltip = true; base.Activate += delegate {OnActivated ();}; base.PopupMenu += delegate {OnPopupMenuEvent ();}; popup = new TrackInfoPopup (); }
private void HidePopup() { if (_popup == null) { return; } _popup.Hide(); _popup.EnterNotifyEvent -= OnPopupEnterNotify; _popup.LeaveNotifyEvent -= OnPopupLeaveNotify; _popup.Destroy(); _popup.Dispose(); _popup = null; }
private void ShowPopup() { if (_popup != null) { return; } _popup = new TrackInfoPopup(); _popup.EnterNotifyEvent += OnPopupEnterNotify; _popup.LeaveNotifyEvent += OnPopupLeaveNotify; PositionPopup(); _popup.Show(); }
private void ShowPopup() { if (popup != null) { return; } popup = new TrackInfoPopup(); popup.EnterNotifyEvent += delegate { hide_delay_started = false; }; popup.LeaveNotifyEvent += delegate(object o, LeaveNotifyEventArgs args) { Gdk.Rectangle rect; if (!popup.Intersect(new Gdk.Rectangle((int)args.Event.X, (int)args.Event.Y, 1, 1), out rect)) { OnLeaveNotifyEvent(o, args); } }; PositionPopup(); popup.Show(); }
private void ShowPopup () { if (popup != null) { return; } popup = new TrackInfoPopup (); popup.EnterNotifyEvent += OnPopupEnterNotify; popup.LeaveNotifyEvent += OnPopupLeaveNotify; PositionPopup (); popup.Show (); }
private void HidePopup () { if (popup == null) { return; } popup.Hide (); popup.EnterNotifyEvent -= OnPopupEnterNotify; popup.LeaveNotifyEvent -= OnPopupLeaveNotify; popup.Destroy (); popup.Dispose (); popup = null; }