Beispiel #1
0
 protected override bool OnButtonReleaseEvent(Gdk.EventButton evnt)
 {
     if (evnt.Button == 1)
     {
         if (mouseOverStar && AllowPinning)
         {
             pinned = !pinned;
             QueueDraw();
             if (PinClicked != null)
             {
                 PinClicked(this, EventArgs.Empty);
             }
             return(true);
         }
         else if (mouseOver)
         {
             WelcomePageSection.DispatchLink(actionUrl);
             return(true);
         }
     }
     return(base.OnButtonReleaseEvent(evnt));
 }
 protected virtual void OnClicked()
 {
     WelcomePageSection.DispatchLink(actionLink);
 }
Beispiel #3
0
 void PerformPress(object sender, EventArgs e)
 {
     WelcomePageSection.DispatchLink(LinkUrl);
 }