[MonoDevelop] Double click references patch
Jacob Ilsø Christensen
Jacob Ilsø Christensen <jacobilsoe@gmail.com>
Thu May 12 20:53:25 EDT 2005
------=_Part_697_6188064.1115927605085
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi.
The attached patch lets you double click references to add or remove
them in the Edit References dialog.
Best regards,
Jacob
------=_Part_697_6188064.1115927605085
Content-Type: text/x-patch; name="DoubleClickReferences.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="DoubleClickReferences.patch"
SW5kZXg6IENvcmUvc3JjL01vbm9EZXZlbG9wLkJhc2UvR3VpL0RpYWxvZ3MvUmVmZXJlbmNlRGlh
bG9nL1Byb2plY3RSZWZlcmVuY2VQYW5lbC5jcwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDb3JlL3NyYy9Nb25v
RGV2ZWxvcC5CYXNlL0d1aS9EaWFsb2dzL1JlZmVyZW5jZURpYWxvZy9Qcm9qZWN0UmVmZXJlbmNl
UGFuZWwuY3MJKHJldmlzaW9uIDI1MjcpCisrKyBDb3JlL3NyYy9Nb25vRGV2ZWxvcC5CYXNlL0d1
aS9EaWFsb2dzL1JlZmVyZW5jZURpYWxvZy9Qcm9qZWN0UmVmZXJlbmNlUGFuZWwuY3MJKHdvcmtp
bmcgY29weSkKQEAgLTE2LDk4ICsxNiw2MyBAQAogdXNpbmcgR3RrOwogCiBuYW1lc3BhY2UgTW9u
b0RldmVsb3AuR3VpLkRpYWxvZ3MgeworICAgIAorICAgIHB1YmxpYyBjbGFzcyBQcm9qZWN0UmVm
ZXJlbmNlUGFuZWwgOiBWQm94LCBJUmVmZXJlbmNlUGFuZWwgeworCVNlbGVjdFJlZmVyZW5jZURp
YWxvZyBzZWxlY3REaWFsb2c7CiAJCi0JcHVibGljIGNsYXNzIFByb2plY3RSZWZlcmVuY2VQYW5l
bCA6IF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