diff options
Diffstat (limited to 'src/interface/Textbox.cpp')
| -rw-r--r-- | src/interface/Textbox.cpp | 8 |
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()) |
