Inheritance: Gtk.DrawingArea, IEditableObject
Beispiel #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;
		}
Beispiel #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);
		}
 public void PopupContextMenu(Placeholder ph)
 {
     Gtk.Menu m = new ContextMenu(ph);
     m.Popup();
 }
Beispiel #4
0
		public void PopupContextMenu (Placeholder ph)
		{
			Gtk.Menu m = new ContextMenu (ph);
			m.Popup ();
		}
Beispiel #5
0
		public static void Paste (Placeholder target)
		{
			Clipboard.target = target;
			MainClipboard.RequestContents (WidgetUtils.ApplicationXSteticAtom, ClipboardPaste);
		}
Beispiel #6
0
 public static void Paste(Placeholder target)
 {
     Clipboard.target = target;
     MainClipboard.RequestContents(WidgetUtils.ApplicationXSteticAtom, ClipboardPaste);
 }