Пример #1
0
		public IPropertyEditor CreateEditor (PropertyDescriptor prop)
		{
			PropertyEditorCell cell = PropertyEditorCell.GetPropertyCell (prop);
			cell.Initialize (this, prop, null);

			session = cell.StartEditing (new Gdk.Rectangle (), StateType.Normal);
			if (session == null)
				return new DummyEditor ();
			
			Gtk.Widget w = (Gtk.Widget) session.Editor as Gtk.Widget;
			w.ShowAll ();
			return session.Editor;
		}
Пример #2
0
 public HackEntry(Gtk.Widget child, EditSession session)
 {
     this.session = session;
     box = new EventBox ();
     box.ButtonPressEvent += new ButtonPressEventHandler (OnClickBox);
     box.ModifyBg (StateType.Normal, Style.White);
     box.Add (child);
 }