Inheritance: Gtk.DrawingArea, IEditableObject
Ejemplo n.º 1
0
		static void ClipboardPaste (Gtk.Clipboard clipboard, Gtk.SelectionData seldata)
		{
			Stetic.Wrapper.Container parent = Stetic.Wrapper.Container.LookupParent (target);
			if (parent == null)
				return;

			Stetic.Wrapper.Widget wrapper = WidgetUtils.Paste (parent.Project, seldata);
			if (wrapper == null)
				return;

			parent.PasteChild (target, wrapper.Wrapped);
			target = null;
		}
Ejemplo n.º 2
0
		public ContextMenu (Placeholder ph)
		{
			MenuItem item;

			editable = ph;
			this.widget = ph;

			item = LabelItem (ph);
			item.Sensitive = false;
			Add (item);

			item = new MenuItem (Catalog.GetString ("_Select"));
			item.Sensitive = false;
			Add (item);

			BuildContextMenu (Stetic.Wrapper.Container.LookupParent (ph), true, ph);
		}
Ejemplo n.º 3
0
 public void PopupContextMenu(Placeholder ph)
 {
     Gtk.Menu m = new ContextMenu(ph);
     m.Popup();
 }
Ejemplo n.º 4
0
		public void PopupContextMenu (Placeholder ph)
		{
			Gtk.Menu m = new ContextMenu (ph);
			m.Popup ();
		}
Ejemplo n.º 5
0
		public static void Paste (Placeholder target)
		{
			Clipboard.target = target;
			MainClipboard.RequestContents (WidgetUtils.ApplicationXSteticAtom, ClipboardPaste);
		}
Ejemplo n.º 6
0
 public static void Paste(Placeholder target)
 {
     Clipboard.target = target;
     MainClipboard.RequestContents(WidgetUtils.ApplicationXSteticAtom, ClipboardPaste);
 }