4 namespace Search
.Tiles
{
6 public class ActionMenuItem
: ImageMenuItem
8 private TileActionDelegate action_delegate
;
10 public ActionMenuItem (TileAction action
) : base (action
.Name
)
12 this.action_delegate
= action
.Action
;
14 if (action
.Stock
!= null) {
15 Gtk
.Image image
= new Gtk
.Image ();
16 image
.SetFromStock (action
.Stock
, IconSize
.Menu
);
22 protected override void OnActivated ()
24 if (action_delegate
!= null)