diff dynamin/gui/clipboard.d @ 106:acdbb30fee7e

Port to D2. Most of the effort was dealing with immutable and const.
author Jordan Miner <jminer7@gmail.com>
date Mon, 17 Dec 2012 23:41:50 -0600
parents 73060bc3f004
children
line wrap: on
line diff
--- a/dynamin/gui/clipboard.d	Sat Nov 24 10:21:50 2012 -0600
+++ b/dynamin/gui/clipboard.d	Mon Dec 17 23:41:50 2012 -0600
@@ -41,7 +41,7 @@
 	/**
 	 * Sets the data on the clipboard to the specified _text.
 	 */
-	void setText(string text) {
+	void setText(cstring text) {
 		backend_setText(text);
 	}
 	alias setText copyText;
@@ -49,7 +49,7 @@
 	 * Gets text from the clipboard. If the clipboard does not have any text
 	 * or has an empty string, null is returned.
 	 */
-	string getText() {
+	mstring getText() {
 		return backend_getText();
 	}
 	alias getText pasteText;
@@ -75,11 +75,11 @@
 	mixin SelectionBackend;
 public:
 	///
-	void setText(string text) {
+	void setText(cstring text) {
 		backend_setText(text);
 	}
 	///
-	string getText() {
+	mstring getText() {
 		return backend_getText();
 	}
 	///