コード例 #1
0
		public ActionMenuItem (TileAction action) : base (action.Name)
		{
			this.action_delegate = action.Action;

			if (action.Stock != null) {
				Gtk.Image image = new Gtk.Image ();
				image.SetFromStock (action.Stock, IconSize.Menu);
				image.Show ();
				this.Image = image;
			}
		}
コード例 #2
0
        public ActionMenuItem(TileAction action) : base(action.Name)
        {
            this.action_delegate = action.Action;

            if (action.Stock != null)
            {
                Gtk.Image image = new Gtk.Image();
                image.SetFromStock(action.Stock, IconSize.Menu);
                image.Show();
                this.Image = image;
            }
        }
コード例 #3
0
 public TileAction(string name, TileActionDelegate action)
 {
     this.name   = name;
     this.action = action;
 }
コード例 #4
0
 public TileAction(string name, string stock, TileActionDelegate action)
 {
     this.name   = name;
     this.stock  = stock;
     this.action = action;
 }
コード例 #5
0
ファイル: TileAction.cs プロジェクト: ArsenShnurkov/beagle-1
		public TileAction (string name, TileActionDelegate action)
		{
			this.name = name;
			this.action = action;
		}
コード例 #6
0
ファイル: TileAction.cs プロジェクト: ArsenShnurkov/beagle-1
		public TileAction (string name, string stock, TileActionDelegate action)
		{
			this.name = name;
			this.stock = stock;
			this.action = action;
		}