Skip to content

Commit

Permalink
Update rust-clipboard to the version with working set_contents.
Browse files Browse the repository at this point in the history
  • Loading branch information
aweinstock314 committed Jul 29, 2015
1 parent f86252a commit 9ba1885
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/compositing/constellation.rs
Expand Up @@ -476,7 +476,7 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
sender.send(result).unwrap();
}
ConstellationMsg::SetClipboardContents(s) => {
if let Some(ref ctx) = self.clipboard_ctx {
if let Some(ref mut ctx) = self.clipboard_ctx {
if let Err(e) = ctx.set_contents(s) {
debug!("Error setting clipboard contents ({})", e);
}
Expand Down
1 change: 0 additions & 1 deletion components/script/textinput.rs
Expand Up @@ -329,7 +329,6 @@ impl<T: ClipboardProvider> TextInput<T> {
},
Key::C if is_control_key(mods) => {
if let Some(text) = self.get_selection_text() {
println!("get_selection_text(): {}", &text);
self.clipboard_provider.set_clipboard_contents(text);
}
KeyReaction::DispatchInput
Expand Down
2 changes: 1 addition & 1 deletion components/servo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ports/cef/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ports/gonk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9ba1885

Please sign in to comment.