Date: Tue, 27 Jan 2015 11:09:21 +0100 From: Peter <peter@flytrace.com> To: ports@FreeBSD.org Subject: xrdesktop ported to Gtk2 Message-ID: <54C763D1.7020108@flytrace.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------060103000108040102030702 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, I've ported xrdesktop to Gtk2 and fixed some small bugs. The software was tested during some months in everyday use, there is no problem. You can push it to ports tree with the same name or as xrdesktop2 (to save the old one). Best regards, Peter TKATCHENKO --------------060103000108040102030702 Content-Type: text/plain; charset=UTF-8; name="xrdesktop" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="xrdesktop" IyEvdXNyL2Jpbi9wZXJsIC13CgojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIwojIHhyZGVz a3RvcCwgYSBndGstcGVybCBmcm9udGVuZCBmb3IgcmRlc2t0b3AgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIwojIENvcHlyaWdodCAoQykgMjAwMiBEYXZpZCBLb3ZhY2gg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIwojIFBvcnRl ZCB0byBHdGsyIGJ5IFBldGVyIFRLQVRDSEVOS08sIDIwMTQJCQkjCiMgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAjCiMgVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBjYW4g cmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnkgICAgICAgICAjCiMgaXQgdW5kZXIgdGhl IHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQg YnkgICAgICAgICAjCiMgdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbjsgZWl0aGVyIHZl cnNpb24gMiBvZiB0aGUgTGljZW5zZSwgb3IgICAgICAgICAgICAjCiMgKGF0IHlvdXIgb3B0 aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAjCiMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjCiMgVGhpcyBwcm9ncmFt IGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsICAg ICAgICAgICAgICAjCiMgYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4g dGhlIGltcGxpZWQgd2FycmFudHkgb2YgICAgICAgICAgICAgICAjCiMgTUVSQ0hBTlRBQklM SVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiAgU2VlIHRoZSAgICAg ICAgICAgICAgICAjCiMgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0 YWlscy4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjCiMgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAjCiMgWW91IHNob3VsZCBoYXZlIHJlY2VpdmVkIGEgY29weSBvZiB0aGUg R05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgICAgICAgICAgICAjCiMgYWxvbmcgd2l0aCB0 aGlzIHByb2dyYW07IGlmIG5vdCwgd3JpdGUgdG8gdGhlIEZyZWUgU29mdHdhcmUgICAgICAg ICAgICAgICAgICAjCiMgRm91bmRhdGlvbiwgSW5jLiwgNTkgVGVtcGxlIFBsYWNlLCBTdWl0 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vciAobXkgJG49JGluZGV4bWF4LTE7ICRuPj0wOyAkbi0tKQogIHsgCiAgc3BsaWNlIEB7 ICRsaXN0MS0+e2RhdGF9IH0sICRuLCAxOwogIH0gCiAgQG1hY2hpbmVzID0ga2V5cyAlaXBf aGFzaDsKICAkaW5kZXhtYXggPSAwOwogIGZvcmVhY2ggJG1hY2hpbmEgKHNvcnQgQG1hY2hp bmVzKQogIHsKICAgIHB1c2ggQHskbGlzdDEtPntkYXRhfX0sIFskbWFjaGluYSwgJGlwX2hh c2h7JG1hY2hpbmF9LCAkdW5hbWVfaGFzaHskbWFjaGluYX0sICRrbWFwX2hhc2h7JG1hY2hp bmF9LCAkZ2VvbV9oYXNoeyRtYWNoaW5hfSwgJGZ1bGxzY3JlZW5faGFzaHskbWFjaGluYX0s ICRiaXRtYXBfdXBkX2hhc2h7JG1hY2hpbmF9LCAkbGljZW5zZV9oYXNoeyRtYWNoaW5hfSwg JHBhc3N0aHJ1X2hhc2h7JG1hY2hpbmF9IF07CiAgICAkaW5kZXhtYXgrKzsKICB9CiAgCn0K --------------060103000108040102030702--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54C763D1.7020108>