Beispiel #1
0
		public void PopupContextMenu (Stetic.Wrapper.Widget wrapper)
		{
			Gtk.Menu m = new ContextMenu (wrapper);
			m.Popup ();
		}
Beispiel #2
0
		public void PopupContextMenu (Placeholder ph)
		{
			Gtk.Menu m = new ContextMenu (ph);
			m.Popup ();
		}
Beispiel #3
0
 public void PopupContextMenu(Placeholder ph)
 {
     Gtk.Menu m = new ContextMenu(ph);
     m.Popup();
 }
		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 ();
		}
Beispiel #5
0
 public void PopupContextMenu(Stetic.Wrapper.Widget wrapper)
 {
     Gtk.Menu m = new ContextMenu(wrapper);
     m.Popup();
 }