SetSelectionData() public static method

public static SetSelectionData ( Gtk data, string atomType, object val ) : void
data Gtk
atomType string
val object
return void
Ejemplo n.º 1
0
 public void SetData(TransferDataType type, Func <object> dataSource)
 {
     clipboard.SetWithData((Gtk.TargetEntry[])Util.BuildTargetTable(new TransferDataType[] { type }),
                           delegate(Gtk.Clipboard cb, Gtk.SelectionData data, uint id) {
         TransferDataType ttype = Util.AtomToType(data.Target.Name);
         if (ttype == type)
         {
             Util.SetSelectionData(data, data.Target.Name, dataSource());
         }
     },
                           delegate {
     });
 }