summaryrefslogtreecommitdiff
path: root/src/interface/Textbox.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-01-18 19:37:24 (GMT)
committer jacob1 <jfu614@gmail.com>2013-01-18 19:37:24 (GMT)
commitded94b475d643f3e144f677ae6c01bbe5f9a73ce (patch)
treecaf8d058086bb846abaa3f1fdcfd37bd2a97ea83 /src/interface/Textbox.cpp
parentb3a2ab735b76185715d7efd848659ef87ca70405 (diff)
downloadpowder-ded94b475d643f3e144f677ae6c01bbe5f9a73ce.zip
powder-ded94b475d643f3e144f677ae6c01bbe5f9a73ce.tar.gz
move clipboard functions out of misc.cpp without creating errors
Diffstat (limited to 'src/interface/Textbox.cpp')
-rw-r--r--src/interface/Textbox.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interface/Textbox.cpp b/src/interface/Textbox.cpp
index c82b6e4..603c894 100644
--- a/src/interface/Textbox.cpp
+++ b/src/interface/Textbox.cpp
@@ -125,20 +125,20 @@ void Textbox::OnContextMenuAction(int item)
void Textbox::cutSelection()
{
char * clipboardText;
- clipboardText = clipboard_pull_text();
+ clipboardText = ClipboardPull();
std::string newText = std::string(clipboardText);
free(clipboardText);
if(HasSelection())
{
if(getLowerSelectionBound() < 0 || getHigherSelectionBound() > backingText.length())
return;
- clipboard_push_text((char*)backingText.substr(getLowerSelectionBound(), getHigherSelectionBound()-getLowerSelectionBound()).c_str());
+ ClipboardPush((char*)backingText.substr(getLowerSelectionBound(), getHigherSelectionBound()-getLowerSelectionBound()).c_str());
backingText.erase(backingText.begin()+getLowerSelectionBound(), backingText.begin()+getHigherSelectionBound());
cursor = getLowerSelectionBound();
}
else
{
- clipboard_push_text((char*)backingText.c_str());
+ ClipboardPush((char*)backingText.c_str());
backingText.clear();
}
ClearSelection();
@@ -181,7 +181,7 @@ void Textbox::selectAll()
void Textbox::pasteIntoSelection()
{
char * clipboardText;
- clipboardText = clipboard_pull_text();
+ clipboardText = ClipboardPull();
std::string newText = std::string(clipboardText);
free(clipboardText);
if(HasSelection())