Esempio n. 1
0
		public void PopupContextMenu (Stetic.Wrapper.Widget wrapper)
		{
			Gtk.Menu m = new ContextMenu (wrapper);
			m.Popup ();
		}
Esempio n. 2
0
		public void PopupContextMenu (Placeholder ph)
		{
			Gtk.Menu m = new ContextMenu (ph);
			m.Popup ();
		}
Esempio n. 3
0
 public void PopupContextMenu(Placeholder ph)
 {
     Gtk.Menu m = new ContextMenu(ph);
     m.Popup();
 }
Esempio n. 4
0
		protected override bool OnPopupMenu ()
		{
			Stetic.Wrapper.Widget selection = SelectedWrapper;

			if (selection != null) {
				Menu m = new ContextMenu (selection);
				if (selection.IsTopLevel) {
					// Allow deleting top levels from the project view
					ImageMenuItem item = new ImageMenuItem (Gtk.Stock.Delete, null);
					item.Activated += delegate (object obj, EventArgs args) {
						selection.Delete ();
					};
					item.Show ();
					m.Add (item);
				}
				m.Popup ();
				return true;
			} else
				return base.OnPopupMenu ();
		}
Esempio n. 5
0
 public void PopupContextMenu(Stetic.Wrapper.Widget wrapper)
 {
     Gtk.Menu m = new ContextMenu(wrapper);
     m.Popup();
 }